Updating from 5.04 to 5.05 gives error "No PHP versions found for mode mod_php at web-lib-funcs.pl line 1427"

This happened on a system running Ubuntu 12.04.5 LTS when updating from Virtualmin 5.04 to 5.05 using apt-get update && apt-get dist-upgrade:

Setting up webmin-virtual-server (5.05.gpl) ...
virtual-server/postinstall.pl failed : virtual-server::module_install failed : No PHP versions found for mode mod_php at web-lib-funcs.pl line 1427.

Seems like something broke there, since there is already another bug report about PHP issues when updating from 5.04 to 5.05.

Should I worry about this error message? Is there anything important happening in postinstall.pl that now didn't take place?

Status: 
Active

Comments

We'll likely need Jamie's input on this one here, but I had a couple of questions that may help us dig into that.

First, are any of your domains using mod_php?

And second, what is the output of this command:

dpkg -l 'php'

No, I use FastCGI everywhere. (But still, maybe some other code that would have been executed after the error was thrown would have been important?)

This is the output of dpkg -l "php":

dpkg -l "*php*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                    Version                                 Description
+++-=======================================-=======================================-==============================================================================================
un  libapache2-mod-php4                     <none>                                  (no description available)
ii  libapache2-mod-php5                     5.3.10-1ubuntu3.25                      server-side, HTML-embedded scripting language (Apache 2 module)
un  libapache2-mod-php5filter               <none>                                  (no description available)
ii  php-pear                                5.3.10-1ubuntu3.25                      PEAR - PHP Extension and Application Repository
un  php-xml-util                            <none>                                  (no description available)
un  php4-pear                               <none>                                  (no description available)
ii  php5                                    5.3.10-1ubuntu3.25                      server-side, HTML-embedded scripting language (metapackage)
ii  php5-cgi                                5.3.10-1ubuntu3.25                      server-side, HTML-embedded scripting language (CGI binary)
ii  php5-cli                                5.3.10-1ubuntu3.25                      command-line interpreter for the php5 scripting language
ii  php5-common                             5.3.10-1ubuntu3.25                      Common files for packages built from the php5 source
ii  php5-curl                               5.3.10-1ubuntu3.25                      CURL module for php5
ii  php5-dev                                5.3.10-1ubuntu3.25                      Files for PHP5 module development
un  php5-fpm                                <none>                                  (no description available)
ii  php5-gd                                 5.3.10-1ubuntu3.25                      GD module for php5
un  php5-idn                                <none>                                  (no description available)
ii  php5-imagick                            3.1.0~rc1-1                             ImageMagick module for php5
ii  php5-intl                               5.3.10-1ubuntu3.25                      internationalisation module for php5
un  php5-json                               <none>                                  (no description available)
ii  php5-mcrypt                             5.3.5-0ubuntu1                          MCrypt module for php5
un  php5-memcache                           <none>                                  (no description available)
un  php5-memcached                          <none>                                  (no description available)
un  php5-mhash                              <none>                                  (no description available)
ii  php5-mysql                              5.3.10-1ubuntu3.25                      MySQL module for php5
un  php5-mysqli                             <none>                                  (no description available)
un  php5-mysqlnd                            <none>                                  (no description available)
un  php5-suhosin                            <none>                                  (no description available)
un  phpapi-20090626                         <none>                                  (no description available)

Thanks for your output! It looks like Drupal filtered out my asterisk characters -- you typed exactly the command I was after. I just wanted to verify that mod_php was indeed there, and the same version as the standard FCGID/CGI PHP version.

Okay, Jamie will let us know what all that means then.

Thanks, andreychek. By the way, my previous comment doesn't appear on this page yet, I think it has to be accepted first. Just to make sure that all the relevant information is visible to everybody.

There is a bug in Virtualmin 5.05 that can cause this during re-installs. However, it is harmless and can be safely ignored.