Submitted by compserv on Sat, 06/26/2010 - 21:52
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
Submitted by JamieCameron on Sun, 06/27/2010 - 00:56 Comment #1
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.
Submitted by compserv on Sun, 06/27/2010 - 18:09 Comment #2
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!
Submitted by compserv on Sun, 06/27/2010 - 18:13 Comment #3
Looks like libphp5.so was not created. So, how do I create it?
Submitted by JamieCameron on Mon, 06/28/2010 - 00:53 Comment #4
Maybe the
libapache2-mod-php5
package is not installed?You can install it with
apt-get install libapache2-mod-php5
Submitted by sgrayban on Wed, 06/30/2010 - 05:38 Comment #5
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.
Submitted by JamieCameron on Wed, 06/30/2010 - 11:34 Comment #6
Just out of interest, did they ever say why Debian's apache package behaves like this?
Submitted by sgrayban on Wed, 06/30/2010 - 11:39 Comment #7
Nope