CentOS Linux Server Guide

CentOS Web Server

 

Verifying Apache httpd.conf syntax

 

To check the httpd.conf syntax, there are two method to check:-

 

For RPM installation package

If Apache web server using rpm package installation,  you can use the following command
httpd -t

Syntax OK
 

If the configuration is correct, the system will return the "Syntax OK" result

 
httpd -t

Syntax error on line 572 of /etc/httpd/conf/httpd.conf:
Illegal option Noxne

The example above shows the wrong configuration line, the typo Noxne instead of None

 

For Source code installation Method
apachectl configtest

 

Back to CentOS Apache Web Server



Copyright 2011 http://www.1a-centosserver.com All Rights Reserved

All trademarks are the property of their respective owners.

Contact Us | Terms of Use | Privacy Policy