Submitted by virtualmin108 on Thu, 01/06/2011 - 04:07
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
Submitted by virtualmin108 on Thu, 01/06/2011 - 05:45 Comment #1
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
Submitted by virtualmin108 on Thu, 01/06/2011 - 05:59 Comment #2
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
Submitted by Locutus on Thu, 01/06/2011 - 06:17 Comment #3
php_value
Apache config commands only work when using themod_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.Submitted by JamieCameron on Thu, 01/06/2011 - 12:19 Comment #4
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.