php4 w/ php5 AND mod_proxy

11.06.05 - 04:57am
music playing: Rage Against the Machine - How I Could Just Kill a Man
Someone's gonna be getting some pussy tonight!!

...and with the time it takes to compile PHP, I'm strongly guessing that it ain't gonna be me :P

addendum

I got it to work perfectly!!

Sadly, the logic behind it is pretty damn simple. Install two versions of Apache in separate folders, then two versions of PHP in separate folders.

One has to respond on port 80 and the other on any other available port (not 80). Then you simply proxy all traffic for the intended hostname from the first install of Apache to the second install of Apache on that port.

You also have to add a static host to /etc/hosts to point the proxied URI to the localhost OR whatever IP you want.

The first one has a simple Vhost.

<VirtualHost *:80>
ServerName domain.com
ServerAlias abc.domain.com
ProxyPass / http://abc.domain.com:81/
</VirtualHost>

The second has your standard Vhost that you would expect in the httpd.conf

<VirtualHost *:81>
ServerName domain.com
ServerAlias abc.domain.com
DocumentRoot /some/location
ScriptAlias /cgi-bin/ "/some/location/cgi-bin/"
</VirtualHost>

Then start both versions of Apache and you're done.

This guy tries to explain it, but don't listen to his --activate-module bullshit.
Use --with-apxs and load the module in the httpd.conf. That will get you all the ladies.

One major problem however, the entire purpose of this exercise was to get Horde working, but it won't work through the proxy and I'm too lazy to switch them. So the webmail will have to wait another few months.