![]() |
| Update your plesk vps to php 5. |
|
Keith
|
Please follow these directions exactly as they are to avoid messing up your vps in the php update.
Plesk implements two completely seperate instances of Apache. There is "httpd" that serves your virtual hosts and "httpsd" that serves the Plesk control panel itself. During this procedure, We're not going to touch "httpsd" and we're only going to update two config files for "httpd". The PHP5 SAPI apache2handler module needs to be compiled into PHP using the --with-apxs2 directive, however the version of apxs that exists as standard in the Plesk file system at "/usr/local/psa/admin/bin/apxs" is a customised version, designed for use with "httpsd" and you *cannot* use it for compiling your new PHP5. You must obtain a correct version of apxs, as described below. Upgrade Procedure Make yourself comfortable and open your Shell, we shall begin. Install Yum Plesk isn't even supplied with "yum", our friends in Siberia don't want you to do anything useful (dangerous). So install it, you only live once.
I don't think there were any dependencies, but if there are you'll need to satisfy them. You need "yum" Get the "apxs" script with required libraries and headers Installing the "httpd-devel" package will sort this out for us.
"apxs" will be installed in /usr/sbin as part of the package install. Don't worry about configuring "apxs" to compensate for the non-standard Apache installation path, the yum install of "httpd-devel" will pick it up and sort it out for us. Get all the other packages needed to compile PHP5 Install all of the following and any dependencies that crop up. You can use "yum" (if you like an easy life) but do them one at a time.
These three packages are required to fix a dependency bug in the FC2 version of "net-snmp-devel" and must be installed first.
Now the last one
IMPORTANT - Install UW-IMAP c-client **This is essential for Horde** Get and install this package:
It isn't available via "yum" so you'll need to download and install it using "rpm".
Compiling PHP - The good bit Now that you have everything in place, you can configure, compile and install PHP5. The ./configure directives below are absolutely critical if you're going to end up with a working system after this procedure. Ensure that you copy them carefully. You can add anything else that you need but these are the absolute minimum set of directives needed, especially to maintain Horde functionality. Configure If you haven't got it already, download the PHP-5.x.x source distribution from http://www.php.net to a suitable location and expand it. I used /usr/local/src/php5, you can use whatever you want as long as you remember where it is!
Now run the ./configure command as stated below. Do not remove or change anything in this example unless you know what you're doing.
All being well, ./configure should have completed with no errors so you can now compile.
If PHP compiled with no errors, you can install it.
PHP Run-time Config (php.ini) You do not need to add the path to PEAR as suggested by # make install. The path is added to the PHP run-time configuration dynamically by Horde. You can add it if you intend to develop using PEAR at some point in the future. My php.ini worked without any changes, however you may wish to adjust it to your own requirements. I would finish this procedure first though in order to ensure that you have a working system before doing anything else. Apache Run-time Config (httpd.conf) You only need to make two small changes. I'm using "vi" to edit the config files. You can use the editor of your choice.
Change the top line of "conf.d" so that it loads the new PHP5 module instead of the old PHP4 module i.e. "LoadModule php5_module modules/libphp5.so"
At the foot of the file, comment out the line that reads "LoadModule php5_module /usr/lib/httpd/modules/libphp5.so". This was added by the PHP5 install but it's not needed as it's already in "conf.d". Zend Zend was updated to version 2 during the PHP5 install. I didn't need to make any further changes. Ioncube Contrary to many reports that I've read, nothing has needed to changed here. Pear The PHP5 install upgrades a couple of PEAR packages automatically. Nothing else needed to be done. Archive_Tar - upgraded to v1.3.1 XML_RPC - upgraded to v1.4.6 Finally Restart Apache and you should have a new working PHP5 system. Test Horde by browsing to http://webmail.yourdomain.com/horde/test.php (if you have the proper dns setup for the webmail). The resultant page is self explanatory and shows which Horde applications are installed and if all their dependencies have been met. |
||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||
| Update your plesk vps to php 5. |
|
||
|


