Link to home
Start Free TrialLog in
Avatar of kalvillo
kalvillo

asked on

PHP 4 and PHP 5 on the same server

Hi.

I have a CentOS server with PHP 4.x installed; i tried to upgrade it to PHP 5.x, but the procedure disrupted the MySQL and Perl installations.

Is ir possible to install PHP 5 on the same server without touching the already installed PHP 4?
ASKER CERTIFIED SOLUTION
Avatar of EMB01
EMB01
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes but you will also need 2 seperate web servers one that is configured to parse the PHP file with PHP4 and another that is configured to parse with your instance of PHP5.
You will also want to install MySQL.
http://www.php.net/manual/en/mysql.installation.php

This may give you some good information, too.
http://php.net/manual/en/faq.migration5.php
http://php.net/manual/en/migration5.php

You might want to consider using a different file suffix for your testing while you are still in migration.  Maybe something like script.php5