Virtualmin pro 3.37 and PHP4 can't chose

12 posts / 0 new
Last post
#1 Sun, 06/15/2008 - 00:05
tcl@cunotech.dk

Virtualmin pro 3.37 and PHP4 can't chose

Hi all.

I've just installed Ubunt7.10 and then php4 (PHP5 came with the installation). After this I did an do-release-upgrade to Ubuntu 8.04LTS.

All worked fine. Then I downloaded the Install script from my Serial page (100 slots), and did the install of Vitualmin 3.57.

All went well.

Problem. Even though I have set the php option to cgi I can't chose the PHP4 version. In the templates under Apache opstion I can only choose between Lowest or PHP5. It seems that PHP4 are not an option.

What to do? I have a lot of sites which runs under PHP4, så it Is a need-to-have option. I've read several threads adressing this issue, but none which worked for mee. I've have both PHP4 and PHP5 directories under etc.

Any Ideas??

Sun, 06/15/2008 - 07:08
andreychek

<b>tcl@togidata.dk wrote:</b>
<div class='quote'>
Problem. Even though I have set the php option to cgi I can't chose the PHP4 version. In the templates under Apache opstion I can only choose between Lowest or PHP5. It seems that PHP4 are not an option.

What to do? I have a lot of sites which runs under PHP4, s&Atilde;&yen; it Is a need-to-have option. I've read several threads adressing this issue, but none which worked for mee. I've have both PHP4 and PHP5 directories under etc. </div>
Howdy,

Just for fun, what all do you see if you run:

rpm -qa | grep php

Also, as you log into Virtualmin -- on the navigation bar on the left, you'll see the &quot;Server Configuration&quot; option for any given Virtual Server.

If you click &quot;Server Configuration&quot;, followed by &quot;PHP Version&quot;, it in theory would allow you to specify which one(s) you want to run for a given Virtual Server.

Do you see just 5 listed there, or does it offer both 4 and 5?
-Eric

Sun, 06/15/2008 - 09:44 (Reply to #2)
tcl@cunotech.dk

When I click server administration, I don't have the option -&gt; php version?

Under services I have PHP5 configuration.

Under ECT dir. I have both PHP4 and PHP5.

Sun, 06/15/2008 - 10:41 (Reply to #3)
andreychek

I know you said above that you're running Virtualmin Pro version 3.37, I'd like to verify two things -- which can each be done on the screen you see immediately after logging into Virtualmin.

When you log in, at the top near the center of the screen, you'll see &quot;System hostname&quot;, &quot;Operating System&quot;, &quot;Webmin Version&quot; -- immediately down from that is &quot;Virtualmin version&quot;.

My questions are:

* It says 3.37 there, right? I just wanted to make sure it that wasn't a typo for the latest version, 3.57 (oh, actually, 3.58 just came out yesterday I think).

* Does it mention &quot;Pro&quot; there, and not &quot;GPL&quot;? I'd guess you might see the results you are if Virtualmin throught it was running the GPL version.

However, if you're running 3.37, rather than 3.57, it might help to try upgrading. That version came out last year in March, so it's aging -- and things might be in different places than they are today ;-)

Have a good one!
-Eric

Sun, 06/15/2008 - 13:16 (Reply to #4)
tcl@cunotech.dk

Sorry.. It's a typo. It's versoin 3.57.. :(

Sun, 06/15/2008 - 14:23 (Reply to #5)
andreychek

No problem about the version issue. Having 3.57 means you won't need to upgrade! ;-)

I'm hoping you can provide these two things though:

* The output of the command &quot;rpm -qa | grep php&quot;

* When you log into Virtualmin, in the center of the screen, should be the text &quot;Virtualmin version&quot;. How exactly does it read? Mine says:

Virtualmin version 3.57 (Pro)

Knowing both of those should help diagnose your issue!

Thanks,
-eric

Sun, 06/15/2008 - 14:32 (Reply to #6)
andreychek

Oops, you said Ubuntu. So not &quot;rpm -qa | grep php&quot;, but instead:

dpkg-query -l 'php*'

Thanks ;-)
-Eric

Sun, 08/03/2008 - 11:41 (Reply to #7)
tcl@cunotech.dk

This is what I get:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii php-pear 5.2.4-2ubuntu5 PEAR - PHP Extension and Application Reposit
un php3 &lt;none&gt; (no description available)
ii php4 4:4.4.2-1build server-side, HTML-embedded scripting languag
un php4-cgi &lt;none&gt; (no description available)
un php4-cli &lt;none&gt; (no description available)
ii php4-common 4:4.4.2-1build Common files for packages built from the php
un php4-dev &lt;none&gt; (no description available)
un php4-pear &lt;none&gt; (no description available)
ii php5 5.2.4-2ubuntu5 server-side, HTML-embedded scripting languag
ii php5-cgi 5.2.4-2ubuntu5 server-side, HTML-embedded scripting languag
ii php5-cli 5.2.4-2ubuntu5 command-line interpreter for the php5 script
ii php5-common 5.2.4-2ubuntu5 Common files for packages built from the php
un php5-dev &lt;none&gt; (no description available)
un php5-json &lt;none&gt; (no description available)
ii php5-mysql 5.2.4-2ubuntu5 MySQL module for php5
un php5-mysqli &lt;none&gt; (no description available)
un phpapi-2005060 &lt;none&gt; (no description available)
un phpapi-2006061 &lt;none&gt; (no description available)

Sun, 08/03/2008 - 13:28 (Reply to #8)
andreychek

Hey there,

Can you verify what version Virtualmin thinks you have installed?

When you log into Virtualmin, in the center of the screen, should be the text &quot;Virtualmin version&quot;. How exactly does it read? Mine says:

Virtualmin version 3.60 (Pro)

It sounds like your bought the Pro, but I want to make sure your install realizes that! The problem you're describing is something I might expect out of the GPL version.
-Eric

Tue, 08/05/2008 - 07:14 (Reply to #9)
kato

I had to manually install php5 (going the opposite direction :) ) and I had a similar problem with &quot;PHP Version&quot; not showing up. Mine turned out to be because the php4 and php5 directories and ini files were missing from ~/etc/ for the server. So you may want to check those.

While you're at it, you should look in your httpd.conf and make sure the lines like the ones below match up with the contents of ~/fcgi-bin/:
[code:1]
AddHandler fcgid-script .php
AddHandler fcgid-script .php4
FCGIWrapper /home/users/carsonata/fcgi-bin/php4.fcgi .php4
FCGIWrapper /home/users/carsonata/fcgi-bin/php5.fcgi .php
[/code:1]

Sun, 08/03/2008 - 13:49
tcl@cunotech.dk

Hi,

Webmin version 1.420
Virtualmin version 3.60 (Pro)
Time on server 04/Aug/2008 00:48

It's the pro allrigth :)

Sun, 08/03/2008 - 14:06 (Reply to #11)
andreychek

Well, it looks like your dpkg-query is showing php-cgi and php-cli as being not installed.

You mentioned above that you set the PHP version to use CGI. So even though you have the PHP4 package installed, you'll also need to install these two guys for that to work correctly:

apt-get install php4-cgi php4-cli

After that, if you look in Virtualmin, I suspect you'll PHP4 there as an option.
-Eric

Topic locked