HTTP/1.0 500 Perl execution failed Server

Hi guys

I have had a good look over the forums an I cant find a fix for this and in every instance the moderators say to report it as a bug. So here goes.

When I goto Virtualmin> Server Configuration> Website Options> PHP information>
there is the following error.

HTTP/1.0 500 Perl execution failed Server: MiniServ/0.01 Date: Fri, 21 May 2010 14:49:59 GMT Content-type: text/html Connection: close
Error - Perl execution failed

Undefined subroutine &php_pear::get_pear_commands called at /usr/share/webmin/virtual-server/edit_phpmode.cgi line 139.

Hope you can help.

Status: 
Closed (fixed)

Comments

Howdy -- what Virtualmin version is it that you're using?

Also, is this Virtualmin GPL or Pro?

Operating system Ubuntu Linux 8.04.4 Webmin version 1.510 Virtualmin version 3.78.gpl GPL Theme version 7.6

I wonder if perhaps the php-pear module on your system is really old..

What does the file /usr/share/webmin/php-pear/module.info contain?

desc=PHP Pear Modules version=1.0

Ok, that's the problem .. that pear module is way out of date.

How did you install Virtualmin originally - from our install script, or some other method?

If it was from our installer, you should be able to run apt-get install webmin-php-pear

Yes I installed Virtualmin with install.sh

and then I added the php-pear module through the control panel

So should I just run apt-get install webmin-php-pear ?

Thanks for you help Allan

Yes, just running apt-get install webmin-php-pear should do it.

Hi Jamie

I ran the command you suggested to and got the following.

> apt-get install webmin-php-pear
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  webmin-php-pear
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 8586B of archives.
After this operation, 37.7MB of additional disk space will be used.
Get:1 http://software.virtualmin.com virtualmin-hardy/main webmin-php-pear 1.5 [8586B]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 8586B in 1s (6418B/s)
Selecting previously deselected package webmin-php-pear.
(Reading database ... 66502 files and directories currently installed.)
Unpacking webmin-php-pear (from .../webmin-php-pear_1.5_all.deb) ...
This Webmin module is already installed on your system.
dpkg: error processing /var/cache/apt/archives/webmin-php-pear_1.5_all.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/webmin-php-pear_1.5_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I tried to apt-get remove webmin-php-pear

> apt-get remove webmin-php-pear
Reading package lists...
Building dependency tree...
Reading state information...
Package webmin-php-pear is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

An other sugestions?

Thanks Allan

Ok, I see it now .. the cause is that you have an old manually-installed version of the php-pear module.

The steps to fix it are :

  1. Run rm -rf /usr/share/webmin/php-pear
  2. Run apt-get install webmin-php-pear

Thanks

I appreciate you help.

That fixed the problem.

Allan

Automatically closed -- issue fixed for 2 weeks with no activity.

Hi guys

I have just setup a new ubuntu 10.04 server from scratch and used install.sh GPL to install virtualmin. When it was finished installing I checked “/usr/share/webmin/php-pear/module.info” and it contained “desc=PHP Pear Modules version=1.0”. So I followed your instructions in post #10 above and now the file contains “desc=PHP Pear Modules version=1.5” as it should. After that I installed the “PHP Pear Module” and every thing is working as expected. I am brining this to your attention because it seems that the install.sh is installing the older version.

Thanks for a wonderful product. Allan

Allan - did this server perhaps have Webmin installed on it already? That's the only way I can see that the php-pear module would be installed ... even if we had an old version in our repository, it wouldn't get upgraded when you did the apt-get install.

Hi This is a new machine, purchased as new parts, and put together by me, never before used,. No operating system had ever been installed before I installed ubuntu 10.04 and this was the first time install.sh had been run on it.

Allan

That is very odd then, as we don't even have version 1.0 of that module in the Virtualmin repositories.

Can you check if there are any other php-pear packages installed on your system?

Unfortunately the answer to that is yes because I installed them after I installed the “PHP Pear Module” (see above for the exact order I did things in). However in a few days I will set up a virtual machine and install ubuntu 10.04 and then check and report, then install virtualmin with install.sh and report again.

Ok, if you see this error again, please check what packages are installed before performing the fix.

Also, I will make Virtualmin more resilient to this error state in future.

Hi Jamie

I have just set up a new virtual machine and completed a fresh install of ubuntu 10.04. When it was finished I ran updatedb then locate pear and it returned nothing.

I then installed fail2ban, as I allways do and agin ran updatedb then locate pear and it returned nothing. I then did apt-get update && apt-get upgrade and agin ran updatedb then locate pear and it again returned nothing.

Then I ran wget http://software.Virtualmin.com/gpl/scripts/install.sh then updatedb again followed by /bin/sh install.sh and virtualmin installed in the virtual machine. Then agin ran updatedb then locate pear and it returned

locate pear /etc/pear /etc/pear/pear.conf /usr/bin/pear /usr/bin/peardev /usr/share/doc/php-pear /usr/share/php/pearcmd.php /usr/share/php/.channels/pear.php.net.reg /usr/share/php/.channels/.alias/pear.txt /usr/share/php/.registry/pear.reg /var/cache/apt/archives/php-pear_5.3.2-1ubuntu4.2_all.deb /var/lib/dpkg/info/php-pear.conffiles /var/lib/dpkg/info/php-pear.list /var/lib/dpkg/info/php-pear.md5sums

then I checked for /usr/share/webmin/php-pear/module.info and the /php-pear/module.info does not exist at this stage.

I then ran the Post-Installation Wizard and rechecked for /usr/share/webmin/php-pear/module.info and the /php-pear/module.info does not exist at this stage.

I then continued with my normal configuration which consist of

 Add additional name servers records to the Virtual server DNS template
 Add php5-mysql support
 Add ioncube support for all virtual servers

As I did each of these I ran locate pear but nothing changed.

locate pear /etc/pear /etc/pear/pear.conf /usr/bin/pear /usr/bin/peardev /usr/share/doc/php-pear /usr/share/php/pearcmd.php /usr/share/php/.channels/pear.php.net.reg /usr/share/php/.channels/.alias/pear.txt /usr/share/php/.registry/pear.reg /var/cache/apt/archives/php-pear_5.3.2-1ubuntu4.2_all.deb /var/lib/dpkg/info/php-pear.conffiles /var/lib/dpkg/info/php-pear.list /var/lib/dpkg/info/php-pear.md5sums

Now this is where I usually install the PHP Pear Modules from the Third party module form. But at this stage I have halted my configuration to see if there is anything you would like me to do before I install it.

Allan

Hi guys I am still waiting for a response to my previous post #20. Thanks Allan

Hi guys I just noticed that after saving post #22 there is no post #21 Allan

Joe's picture
Submitted by Joe on Sun, 08/01/2010 - 01:27 Pro Licensee

21 was Jamie's reply. That's really strange that you can't see it. We've recently had another person unable to see Jamie's responses (but only sometimes). Something weird seems to be happening with the ticket tracker.

Here was his reply:

"Ah, I didn't realize you were installing it from the third-party modules page! And that version is quite out of date .. so I have just updated it to the next version."

I'll add that the usual way to install Virtualmin modules is using apt-get and from the Virtualmin repository. The Virtualmin Package Updates module will offer all of the available Virtualmin-related plugins, so you shouldn't need to go through the Webmin modules page manually, unless it's a module we don't distribute via the Virtualmin apt repository.

I am sorry I do not understand.

I'll add that the usual way to install Virtualmin modules is using apt-get and from the Virtualmin repository. The Virtualmin Package Updates module will offer all of the available Virtualmin-related plugins, so you shouldn't need to go through the Webmin modules page manually, unless it's a module we don't distribute via the Virtualmin apt repository.

I needed to install Mail Mail_Mime and Net_SMTP from Pear. Is there a better way of doing this?

Yes, using the php-pear Webmin module is the best way to do this. You just don't want to install that Webmin module from the third-party modules list ... instead, install it with apt-get install webmin-php-pear

So I figured out what you meant in the earlier post. I went to Webmin> Software Package Updates> and selected Only new> then located webmin-php-pear and installed it from there. Now when I check for /usr/share/webmin/php-pear/module.info it exists and the file contains

desc=PHP Pear Modules version=1.5

So it looks like it is working.

Can I suggest that at the top of the Webmin> Software Package Updates> page you include a short explanation of what the page is for, because the name Software Package Updates led me (and I am sure others) to think that it was only for updates of packages that have already been installed not for installing new packages.

That would be very helpful. Allan

Cool, glad you got it working now.. I will add some more help text to that page.

Automatically closed -- issue fixed for 2 weeks with no activity.