php4 and php5

8 posts / 0 new
Last post
#1 Sat, 11/15/2008 - 10:36
Maurizio1230

php4 and php5

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

Sat, 11/15/2008 - 11:29
Joe
Joe's picture

What OS are you running?

--

Check out the forum guidelines!

Sat, 11/15/2008 - 23:58 (Reply to #2)
Maurizio1230

I am running Virtualmin PRO on Debian and Virtualmin GPL on Centos.

Thanks Joe

Sun, 11/16/2008 - 09:00 (Reply to #3)
andreychek

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

Sun, 11/16/2008 - 15:28 (Reply to #4)
sgrayban

Debian no longer supports php4 and will be removed from its repos this month if they haven't already.

Mon, 11/17/2008 - 04:24
Maurizio1230

ohhhh, I have to install it immediately on my Debian :)
How can I do?

Mon, 11/17/2008 - 04:54 (Reply to #6)
andreychek

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

Mon, 11/17/2008 - 15:21 (Reply to #7)
sgrayban

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.

Topic locked