Portal Home > Knowledgebase > Articles Database > 2 versions of php can be installed on sme linux machine?


2 versions of php can be installed on sme linux machine?




Posted by akasharya, 08-31-2010, 03:30 AM
I want to install 2 versions of php(5.1 and 5.3)on a same linux (rhel5)machine...is it possible? if yes then how to do it? please help.

Posted by InstaCarma_Support, 08-31-2010, 03:53 AM
Yes, you can have two php versions installed on a linux machine. While configuring give different name for binaries(Eg:php5.1 and php5.3). The path can be same.

Posted by akasharya, 08-31-2010, 04:07 AM
I am already running the php 5.3 version...there is no cpanel only webmin and virtualmin. Is there any way to do it with yum or rpm? can you please provide me a little more information?

Posted by InstaCarma_Support, 08-31-2010, 04:35 AM
Using rpm installation, this cannot be done. You will have to manually configure the different versions of php on the server and while configuring can give the path.

Posted by madaboutlinux, 08-31-2010, 05:03 AM
I doubt if it's possible. Yes, you can install PHP 4.x and PHP 5.x on the same machine but again you will have to install them manually and not using rpm method.

Posted by barbus, 08-31-2010, 06:58 AM
You can try to install PHP 5.1 manually from sources. I believe it would work.

Posted by Hillockhosting, 09-01-2010, 02:29 AM
Yes it would work on source and rpm installation. Source installation would give you more freedom.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Reboot failure (Views: 600)
Can someone help me? (Views: 619)