Test Apache Config before Restarting

Test Apache Config before Restarting

Apache Web Server LogoIt is not unexpected that you may have to reconfigure your Apache configuration for many of the various configuraiton options it allows for. The problem is how can you do this without actually breaking anything in the interm until you’re sure the configuration will load properly If you’ve made changes to your Apache Web Server configuration and want to simulate how it will handle the next time the service is restarted, use this command in order to simulate Apache loading the configuration file. With this output, you will be able to start debugging any changes that would prevent your Apache from loading properly.

/etc/init.d/httpd configtest

Watch the output for any errors or warnings, and use this information to further debug any problems before you actually have to restart Apache.

Leave a Comment

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>