View Full Version : php5 debian parallel of php4
jspilon
1st November 2006, 02:58 PM
Hello all,
I want to know if any one has been successful at having php5 in parallel of php4 with plesk ?
I know there is the control panel's php5 at /opt/psa/admin/bin/php
Can I use this one, should i install another?
How can I tell a specific domain it should be using php5 ?
how can i load the module with out screwing up php4 ?
Thanks for any input
Debian Sarge
Plesk 8.0.1
kassah
7th November 2006, 02:44 PM
I have not yet done it. However I know it is currently impossible (without heavy modifications to PHP source code which is proboly unwise to mess with) to load both as a module. You will want to install one of them as a CGI. I did this on Gentoo, and I have it done on my Ubuntu Desktop, but not yet with any of my servers. Once I get a nice tutorial done, I'll be sure to post it.
jspilon
7th November 2006, 07:41 PM
Great.
Is there any way I can't start a second instance of apache which won't be messed up with ? I can have an ip dedicated to that one, but I think that plesk assigns it self to all ips... grrr
kassah
8th November 2006, 11:14 AM
Yes, Plesk likes to take over all IPs. And even if you had a second Apache, it obviously wouldn't be able to control the second Apache.
If you're dead set on running a second apache, you can install mod_proxy on Plesk's apache. Then setup the second Apache on another port (such as 90) and put the following directives in your virtual host configuration:
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://yourdomain.com:90/
ProxyPassReverse / http://youdomain.com:90/
<Location />
Order allow,deny
Allow from all
</Location>
kassah
8th November 2006, 11:17 AM
Sorry to post twice, but really your best bet would be to make either PHP4 or PHP5 CGI. This is sooo much easier than setting up a second Apache. The differences between PHP4 and PHP4 CGI or PHP5 and PHP5 CGI are miniscule. Almost all programs will run under both the CGI and mod_ versions.
Thanks,
Will
vBulletin® v3.6.12, Copyright ©2000-2008, Jelsoft Enterprises Ltd.