These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for php4 and php5 on the new forum.
Hi,
Virtualmin Professional includes a complete application deployment stack for both PHP version 4 (note that PHP 4 has been End-of-Lifed by the PHP developers, and should be used only as a last resort, or when the package is provided by your OS vendor, as in the case of CentOS/RHEL 4) and PHP version 5. Through the use of mod_fcgid, suexec, and php-cgi, it is possible to execute scripts compatible with either or both versions of PHP.How can I run script with either or both version? I have a script that support only php4.
Thank you very much
What OS are you running?
--
Check out the forum guidelines!
I am running Virtualmin PRO on Debian and Virtualmin GPL on Centos.
Thanks Joe
The Pro version makes this pretty simple, and Debian Etch offers both PHP4 and PHP5 in their repositories.
Once you've installed both versions, you can go into Virtualmin, choose the domain in question, then go into Server Configuration -> PHP Versions.
From there, you can set the default PHP version to use for either the entire Virtual Host, or even change it for a specific directory.
The GPL version doesn't offer an interface to do all that, but you could accomplish the same thing by manually editing the Apache configuration.
CentOS 5 comes with PHP5, but the GPL Virtualmin repository has a copy of PHP4 in it that you can use.
-Eric
-Eric
Debian no longer supports php4 and will be removed from its repos this month if they haven't already.
ohhhh, I have to install it immediately on my Debian :)
How can I do?
Howdy,
Just remember that Scott is absolutely right, PHP4 is no longer being released or supported -- if any security issue were to show up it, no updates will be made to fix it.
That said, if you're using Debian Etch, you can see what PHP4 packages are available to you by typing this on the command line:
dpkg -l 'php4*'
And to installed them, you could type something like:
apt-get install php4 php4-cgi php4-common php4-mysql
I really !!! DO NOT recommend using PHP4 at all anymore --- You are better off and WISER to use only PHP5 and the script you are using should be converted to use PHP5.