Solusi The Apache2 configtest failed

Tiba-tiba apache gak jalan pas upgrade ke ubuntu 14.04, dan notifnya “The apache2 configtest failed.”.

root@lighthouse:/etc/apache2# sudo service apache2 restart
* Restarting web server apache2 [fail]
* The apache2 configtest failed.
Output of config test was:
AH00526: Syntax error on line 55 of /etc/apache2/apache2.conf:
Invalid command ‘LockFile’, perhaps misspelled or defined by a module not included in the server configuration
Action ‘configtest’ failed.
The Apache error log may have more information.

Cara untuk memperbaikinya adalah dengan mengedit apache2.conf pada folder /etc/apache2 yang sebelumnya

LockFile ${APACHE_LOCK_DIR}/accept.lock

menjadi

Mutex file:${APACHE_LOCK_DIR} default

Dan restart kembali saja 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: