Upgrades BROKE system again

Installed Apache updates. Now Apache server will not start.

Starting web server: apache2Syntax error on line 69 of /etc/apache2/sites-enabled/abjones.myobcba.info.conf: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration failed!

It worked before I installed the upgrade. AB Jones is a Wordpress site for a client.

Status: 
Active

Comments

Every time I've seen this, it is due to an issue with Debian's Apache package, which disabled mod_php when upgraded :-(

The fix is to go to Webmin -> Servers -> Apache Webserver -> Global configuration -> Configure Apache Modules, and re-enable the php5 module.

Thanks for the info. Enabled PHP5.

Apache still does not start. Error Message:

Failed to start service : 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!

Looks like libphp5.so was not created. So, how do I create it?

Maybe the libapache2-mod-php5 package is not installed?

You can install it with apt-get install libapache2-mod-php5

This is a bug that debian will not fix. I have pestered them so much they banned me from making any reports about this issue with apache.

I have found a couple ways to prevent a upgrade breaking the system when it comes to apache.

First create the file /etc/apt/preferences

Then add the following to it

Package: apache2-mpm-worker
Pin: version 1.0*
Pin-Priority: 1001

This will prevent apache2-mpm-worker from being installed automatically which breaks the system by removing libapache2-mod-php5.

This isn't perfect either, if you have the package updates to install instead of notify it will ignore this.

Just out of interest, did they ever say why Debian's apache package behaves like this?