Can't find PHP Versions page

8 posts / 0 new
Last post
#1 Mon, 11/10/2008 - 14:33
pmasse

Can't find PHP Versions page

I would like to configure my virtual servers to used different versions of PHP. However, when going to the virtual server page, I'm unable to find the options the PHP Versions help page describes such as Default HTML directory and so forth.

Is this a pluggin that needs to be installed first?

Please help.

Thanks in advance.

Mon, 11/10/2008 - 21:07
ronald
ronald's picture

if you have php4 and php5 installed then make sure that you have set "lowest available" php version in the server template.

Tue, 11/11/2008 - 09:43 (Reply to #2)
pmasse

I see that. Does virtualmin detect the different versions of PHP instaled or does one need to tell it manually?

Tue, 11/11/2008 - 10:35 (Reply to #3)
ronald
ronald's picture

Ill take a bold and daring guess here as I do not have a lower version than php 5 and I run VM Pro....I'll guess you have to tell it to GPL and Pro will find it by itself... you may correct me if I'm wrong :)

Tue, 11/11/2008 - 10:41 (Reply to #4)
Joe
Joe's picture

Virtualmin Professional can almost always detect versions of PHP. On CentOS 5 we provide php4 packages that will be detected automatically (and, of course, php 5 is the default on CentOS 5 and is detected).

Virtualmin GPL doesn't do anything with versions (or PHP, really), since none of the features for which it would be relevant exist in Virtualmin GPL.

--

Check out the forum guidelines!

Tue, 11/11/2008 - 11:09 (Reply to #5)
pmasse

I have RHES 5 with PHP 5 installed from stock which virtualmin Pro detects as you said. Now I would like to also have PHP 4. I'm prepared to compile it. Is there an RPM version which will install along side PHP 5, and thus be detected by VM Pro? Or will a compiled tar ball work just as well? (with the tar ball, I have a choice of where to install it.)

Tue, 11/11/2008 - 11:33 (Reply to #6)
Joe
Joe's picture

Yes, the CentOS 5 and RHEL repositories are the same--CentOS is a binary-compatible rebuild from source of RHEL. Just install the php5 packages you want. You can list them with:

yum list php5*

--

Check out the forum guidelines!

Tue, 11/11/2008 - 04:58
andreychek

Howdy,

For folks using VM Pro, what you're looking for would be in Server Configuration -> PHP Versions.

From there you can specify what the default PHP versions are.

If you're using VM GPL, that's a bit more tricky of a process -- you'd have to manually set which version to use within the Apache config file in /etc for each Virtual host.
-Eric

Topic locked