You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Verna Virgin <ve...@nebula.co.za> on 2005/05/26 12:49:01 UTC

[users@httpd] PHP4 and PHP5 concurrently on Apache2 using virtualhosts(2)

Hi

Got php4 installed and running on apache2. After installing a second
apache2 server for PHP5 and trying to redirect it to the second server
is still picking up th php4 settings.
The ProxyPass is working and prior to installing PHP5 I can display the
htdocs Apache page from the 2nd Apache installation. However after
installing php5 it, apache still uses the original httpd.conf file. Why?

First srvr:
/usr/local/apache2 (./configure --enable-proxy --enable-proxy-http)
php4 - ./configure --with-apxs2=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql-standard-4.0.24-pc-linux-gnu-i686/bin/mysql_config

httpd.conf
Listen 80
Listen 8080

NameVirtualHost *:8080

<VirtualHost *:8080>
ServerRoot /usr/local/apache2_php5
ProxyPass /php5/ http://localhost:8080/
</VirtualHost>



Second srvr:
/usr/local/apache2_php5 (./configure --prefix=/usr/local/apache2_php5)
php5 - ./configure --with-apxs2=/usr/local/apache2_php5/bin/apxs
--with-mysqli=/usr/local/mysql-standard-4.1.11-pc-linux-gnu-i686/bin/mysql_config

httpd.conf
Listen 8080

If anyone has any advice, I look forward to hearing from you.
Thanx
Verna

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org