Submitted by AllanIT on Fri, 05/21/2010 - 10:24
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
Submitted by andreychek on Fri, 05/21/2010 - 10:27 Comment #1
Howdy -- what Virtualmin version is it that you're using?
Submitted by JamieCameron on Fri, 05/21/2010 - 12:55 Comment #2
Also, is this Virtualmin GPL or Pro?
Submitted by AllanIT on Fri, 05/21/2010 - 13:04 Comment #3
Operating system Ubuntu Linux 8.04.4 Webmin version 1.510 Virtualmin version 3.78.gpl GPL Theme version 7.6
Submitted by JamieCameron on Fri, 05/21/2010 - 13:42 Comment #4
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?Submitted by AllanIT on Fri, 05/21/2010 - 21:03 Comment #5
desc=PHP Pear Modules version=1.0
Submitted by JamieCameron on Sat, 05/22/2010 - 01:20 Comment #6
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
Submitted by AllanIT on Sat, 05/22/2010 - 01:36 Comment #7
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
Submitted by JamieCameron on Sat, 05/22/2010 - 01:46 Comment #8
Yes, just running
apt-get install webmin-php-pear
should do it.Submitted by AllanIT on Sat, 05/22/2010 - 02:41 Comment #9
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
Submitted by JamieCameron on Sat, 05/22/2010 - 16:44 Comment #10
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 :
rm -rf /usr/share/webmin/php-pear
apt-get install webmin-php-pear
Submitted by AllanIT on Sat, 05/22/2010 - 21:05 Comment #11
Thanks
I appreciate you help.
That fixed the problem.
Allan
Submitted by JamieCameron on Sat, 05/22/2010 - 22:29 Comment #12
Great!
Submitted by Issues on Sun, 06/06/2010 - 01:28 Comment #13
Automatically closed -- issue fixed for 2 weeks with no activity.
Submitted by AllanIT on Wed, 07/14/2010 - 10:40 Comment #14
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
Submitted by JamieCameron on Wed, 07/14/2010 - 20:13 Comment #15
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.
Submitted by AllanIT on Wed, 07/14/2010 - 20:30 Comment #16
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
Submitted by JamieCameron on Wed, 07/14/2010 - 21:32 Comment #17
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?
Submitted by AllanIT on Thu, 07/15/2010 - 03:31 Comment #18
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.
Submitted by JamieCameron on Thu, 07/15/2010 - 07:22 Comment #19
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.
Submitted by AllanIT on Thu, 07/22/2010 - 13:53 Comment #20
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
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
As I did each of these I ran locate pear but nothing changed.
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
Submitted by AllanIT on Sun, 08/01/2010 - 01:12 Comment #22
Hi guys I am still waiting for a response to my previous post #20. Thanks Allan
Submitted by AllanIT on Sun, 08/01/2010 - 01:17 Comment #23
Hi guys I just noticed that after saving post #22 there is no post #21 Allan
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.
Submitted by AllanIT on Mon, 08/09/2010 - 13:23 Comment #25
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?
Submitted by JamieCameron on Mon, 08/09/2010 - 16:01 Comment #26
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
Submitted by AllanIT on Tue, 08/10/2010 - 03:09 Comment #27
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
Submitted by JamieCameron on Tue, 08/10/2010 - 14:03 Comment #28
Cool, glad you got it working now.. I will add some more help text to that page.
Submitted by Issues on Tue, 08/24/2010 - 14:20 Comment #29
Automatically closed -- issue fixed for 2 weeks with no activity.