Apache web server can fail to start if the configuration file contains errors. If the configuration file was changed, it is recommended to check for errors before restarting the Apache. This tutorial shows how to check errors in Apache configuration file on Ubuntu.
Run the following command to perform a configuration file syntax test:
apachectl configtest
The command prints Syntax Ok
or information about the particular syntax error.
The same configuration file test can be performed using the -t
option.
apachectl -t
Leave a Comment
Cancel reply