[users@httpd] Apache 2 running PHP4, PHP5 concurrently

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Installed Fedora 3 and Apache 2.0.53. Then installed php-4.3.11 to run
with MySQL 4.0.24 and php-5.0.4 to run with MySQL 4.1.11.

Was able to get a test pgm running using the php4 / MySQL 4.0
combination. Similarly I got a test pgm running using php5 / MySQL 4.1
combination. The only adjustment made was to the httpd.conf file where
I'd change the LoadModule directive to refer to the particular php
module required.

Both MySQL's used the same /etc/my.cnf:
[mysqld-4.0]
datadir  = /usr/local/mysql-4.0/data
basedir  = /usr/local/mysql-4.0
port = 3306
socket = /tmp/mysql40
[mysqld-4.1]
datadir  = /usr/local/mysql-4.1/data
basedir  = /usr/local/mysql-4.1
innodb_data_home_dir = /usr/local/mysql-4.1/data
port = 3307
socket = /tmp/mysql41

However, this does not solve my requirements. I need to run the php4 &
php5 applications concurrently. So I tried running the installed Apache
as a proxy listening on ports 80 and 8080. I tried using <VirtualHost>
to redirect the 8080 requests to a second apache installation using a
different document root. This was not successful.
httpd.conf had these adjustments:
Listen 80
Listen 8080

DocumentRoot /home/webroot
<Directory /home/webroot></Directory>

LoadModule php5_module modules/libphp5.so

<VirtualHost *:8080>
DocumentRoot /home/webroot/php4
<Directory /home/webroot/php4></Directory>
ProxyPass /php4/ /http://localhost:8080/
</VirtualHost>

I can see the both document roots when the original apache installation
is started however I can't start the 2nd apache as it finds fault with
the httpd.conf from the original apache installation and therefore
ignores the httpd.conf from the 2nd installation. Any ideas?

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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux