Web sites can't be oped after upgrading to Virtualmin 3.79

I'm using Debian 5.0 Lenny with Virtualmin GPL. When I upgrade Virtualmin GPL to ver 3.79 all my PHP sites won't open (Capture.JPG). Sites with pure html work fine. I think that I'm using "mod_php" as PHP execution mode that is default with Virtualmin GPL. I see in Apache Modules in Virtualmin "php5" module was disabled. I tried to enabled it but than Apache wont start and this is the error I get:

Starting web server: apache2apache2: Syntax error on line 185 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/php5.load: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory failed!

I see that somehow "libapache2-mod-php5" was missing after upgrade so I installed manually with apt-get.

I don't know what went wrong !?

Status: 
Closed (fixed)

Comments

This isn't triggered by a virtualmin upgrade, but rather by an apache upgrade - on debian, this can cause problems due to mod_php getting disabled. This appears to be a Debian bug unfortunately ..

The fix is to go to Webmin -> Servers -> Apache Webserver -> Global -> Configure Apache Modules, check the box next to php5 and click the Enable Modules button. You will then be able to start Apache.

I see. I already tried to enable php5 module, but with that the apache did not start with same error that I mentioned in previous post.

But I think that the problem was fixed with the installation of libapache2-mod-php5 module, because it was removed when the apache was upgraded and it was not installed again.

Now everything is fine.

Thanks Jamie

Ok, sometimes Debian un-installs the libapache2-mod-php5 package too .. and so it would need to be re-installed.