[How to] - Multiple PHP version in Apache
Hi,
I have problem in deploy multiple PHP version (5.2.1 and 5.3.3) in one Apache. Here my 5.2 configure Code:
./configure --prefix=/usr/local/php52 --with-apxs2=/usr/local/apache/bin/apxs Code:
./configure --prefix=/usr/local/php53 --with-apxs2=/usr/local/apache/bin/apxs Code:
LoadModule php5_module modules/libphp52.so But, if i modify like as Code:
LoadModule php52_module modules/libphp52.so So, I have 2 question to ask: _How can I rename module php_module to php52_module or php53_module: before compile from source PHP (edit file??) ? _And how config Apache can run multiple PHP version in mod_php function? I was tried searching on Google, but not found, because guide base on fastCGI, i want to use mod_php. Thanks a lot! |
Hi there,
As far as I know, you can only have one version of PHP for each Apache server. If oyu need more than one version, you'll need a second Apache server running on different port than first and, probably, using a ProxyPass/ProxyReverse on first one. Hope it helps, emi |
|
emi_ramo and lithos
Thank you very much! And i want to reconfig default module name PHP: _How can I rename module php_module to php52_module or php53_module: before compile from source PHP (edit file??) ? |
Hi,
well, I wouldn't know how to compile it with a different name, but "php5_module" is an Apache configuration name for which it will load a PHP library like Code:
# Use for PHP 5.x: Code:
# Build and install php-5.3 with fpm enabled |
Hi,
I am trying to do the same thing. I could only find for running PHP 4 and PHP 5 here. Since the module names are different I think its possible but with same module name php5_module we dont any option but to change the module name. Any updates on this ? |
All times are GMT -5. The time now is 07:35 AM. |