• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

php5 debian parallel of php4

J

jspilon

Guest
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
 
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.
 
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
 
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>
 
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
 
Back
Top