Failed to start Apache server

after the last Apache update unable to start Apache

Failed to start service :

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

line 39 looks like this: php_value memory_limit +32M

even if I set this value to standart in Virtualmin Apache can not be restarted, rebooted the box but does not help either

Status: 
Closed (fixed)

Comments

can not get Apache back to work, have live websites running, since 3 hours all pages are down, last night it worked all fine, today after recomended update the apache server is broken, If I remove the "php_value" line it comes up with other php_value errors

found same problem on Ubuntu: http://ubuntuforums.org/showthread.php?t=1515516

Problem is gone:

sudo apt-get install libapache2-mod-php5 sudo a2enmod php5 sudo /etc/init.d/apache2 restart

by doing so apache2-mpm-worker is removed but at least apache is up again

php_value Apache config commands only work when using the mod_php variant of calling PHP scripts. When mod_php is missing or the execution mode is set to (F)CGI, or the Apache MPM "prefork" was replaced by "worker" (with which mod_php does not work), you can see the errors you witnessed.

I saw this myself yesterday - for some reason, Debian is offering an apache update that removes the libapache2-mod-php5 package, which breaks any php_ directives in the apache config :-(

As you wrote, installing libapache2-mod-php5 will fix it.