Upgrade Php4 to Php5

How to migrate php4 to php5 within Plesk server?

First of all you must take note of the non backward compatible changes in PHP5.


If you are ready to install/upgrade to PHP5 follow 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.

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

# To this one:

LoadModule php5_module /php/php5apache2.dll

Or PHP5 with CGI mode:

# Change this line:

Action application/x-httpd-php “/php/php.exe”

# To 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*

More info along with Parallels documentation on this link http://forum.swsoft.com/showthread.php?threadid=48019&highlight=upgrade+php