Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

How to check the Apache configuration file (httpd.conf)?

Answer:

When you have made changes to the Apache configuration file (httpd.conf), you should always perform a syntax check on the file before restarting the Apache. Especially if it is on a production environment.

Use the following command to perform a config test

apachectl configtest

  1. Set PHP settings in Apache configuration
  2. How to restart Apache without disconnecting user
  3. Enable Server Side Includes in Apache
  4. Disable X-Powered-By and Server headers in Apache/PHP
  5. Limit Apache only listen to IPv4 address

Leave a Reply

(required)

(required)

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>