|
Thank you for rating this answer.
|
How to migrate php4 to php5 within PLESK:
First of all you must take note of the non backward compatible changes in PHP5:
http://us2.php.net/manual/en/migration5.incompatible.php
Then you will be ready to install/upgrade to PHP5. A direct approach to doing this can be done by following this procedure.
* From your server command line type:
wget -q -O - http://www.atomicorp.com/installers/atomic.sh | sh ,
what this will do is download and install all the necessary packages for your Plesk install , including PHP, MySQL, and Spam assassin. The entire process should be rather streamlined where you will not have to type anything in to console. Once the install is complete you can use the command: php –v, the command will either show no errors whatsoever or it may show something like this:

In the event you have several other packages being used with PHP you will need to take the appropriate steps in upgrading them accordingly. Once you have PHP5 installed you will be ready to migrate and configure apache files for PHP5. There are two methods to accomplish this depending if you are running PHP in CGI mode. For Example inside of the file php.conf located in /etc/httpd/conf.d/php.conf:
# Change this line:
LoadModule php4_module /php/sapi/php4apache2.dll
# With this one:
LoadModule php5_module /php/php5apache2.dll
Or PHP5 with CGI mode:
# Change this line:
Action application/x-httpd-php “/php/php.exe”
# With this one:
Action application/x-httpd-php “/php/php-cgi.exe”
*Note that CGI version has changed its name from php.exe to php-cgi.exe*
Note: More info along with Parallels documentation on this link http://forum.swsoft.com/showthread.php?threadid=48019&highlight=upgrade+php
|