Apache2 upgrade to 2.4 on Debian 8

Published by

Posted on December 05, 2016

While upgrading our last Debian 7 server. I swear I must of missed something during the upgrade. I received multiple apache errors and our websites failed to load.

Error 1
AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}

Fix source /etc/apache2/envvars
Validation
/usr/sbin/apache2 -V
/usr/sbin/apache2 -t

Reference
http://askubuntu.com/questions/452042/why-is-my-apache-not-working-after-upgrading-to-ubuntu-14-04

Error 2
Invalid command ‘SSLMutex’, perhaps misspelled or defined by a module not included in the server configuration AH00526: Syntax error on line 77 of /apache/conf/ssl.conf:

Replace SSLMutex with

” Mutex sysvsem default ” without the quotes

Error 3
Error: “Invalid command ‘Action’, perhaps misspelled or defined by a module not included in the server configuration”

Fix: The actions module need to be enabled
” a2enmod actions ”

Error 4
mode_rewrite error

Fix: a2enmod rewrite

Error 5
403 Forbidden

This error really was confusing. Before the upgrade apache permissions were fine. After reading https://httpd.apache.org/docs/current/upgrading.html .

I had to change
2.2 configuration:

Order allow,deny
Allow from all

to
2.4 configuration:

Require all granted


About the Author