zeus php 5.2.3 upgrade
By makeaweli
- 1 minutes read - 193 wordsCompiling php5 for zeus/fastcgi on Solaris 9.
php needed to be upgraded on a webserver to support several scripts that used the new msyqli database interface.
Sun Studio 12 was installed in /export2 because there wasn’t enought space at /opt, the default install location.
The following environmental variables were used:
The following was used to configure php 5.2.3:
php5 fastcgi startup script /etc/init.d/php5.fcgi:
php5 fastcgi
Previously, compiling php4 with fastcgi resulted in the /usr/local/php/bin/php binary being fastcgi compatible. This isn’t the case with php5. With php5 the /usr/local/php5fcgi/bin/php binary isn’t compatible with fastcgi. The compatible binary is /usr/local/php5fcgi/php-cgi.
php5 Pear libraries
Check what pear libraries were installed for php4:
Install the same libraries for php5:
Modify /etc/php5/php.ini
php’s ini file needed to be modifed:
MySQL 5
In order to fully exploit the power of php5, mysql5 should also be upgraded. I used blastwave.
Make a copy of the mysql data directory:
Copy the blastwave default mysql 5 conf file:
Edit the file:
Comment out the section about replication master:
After testing that everything works normally, the data-mysql5 directory was renamed to data and the previous data directory was archived.
MySQL startup scripts
Nick Johnson’s older startup script was modified: