LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Multiple PHP installation on linux (https://www.linuxquestions.org/questions/programming-9/multiple-php-installation-on-linux-650682/)

geetha_sg 06-21-2008 02:00 AM

Multiple PHP installation on linux
 
Hi,

I am using php 4.3.4 with apche 2.0.48 on redhat. I need to install php 5 another directory without disturbing existing setup. Please help me

Thanks in advance

Sg..

nc3b 06-21-2008 04:39 AM

Why don't you just grab the sources, unpack them and compile them. All you have to do is set a configure parameter. So if you want to install in the /bla/php directory you say

Code:

./configure --prefix=/bla/php
Of course you should also add other configurations parameters that suit your needs. Hope this helps. Cheers:)

PS
This doesn't imply that your apache can work with this other php instalation. Using the same method you can also install a second apache server

PPS
This is a general method, and it is not quite clean, nor is it dependency aware. But it will work on any distro:)

graemef 06-21-2008 07:53 AM

maybe the following will help?

http://devzone.zend.com/node/view/id/633
or
http://www.howtoforge.com/apache2_with_php5_and_php4

geetha_sg 06-22-2008 09:56 PM

Hi nc3b and graemef, thanks for your response . I will try and let me know.

regards
geetha


All times are GMT -5. The time now is 08:21 AM.