Friday, February 06, 2009

Unable to start apache after make some changes

Unable to start apache after make some changes? by default apache have config file syntax checking. You can execute below command to check you syntax.
# httpd -t
# httpd -S

If the syntax of the output will look like this:-
Syntax OK

it mean you configure correctly.

If the out put similar with this,
Syntax error on line 44 of /etc/apache/httpd.conf:
bla...bla...bla.....

correct the syntax and try start again:-
# vi +44 /etc/apache/httpd.conf

For more info ,check log file :-


tail -f /var/log/httpd-error.log

egrep -i 'warn|error' /var/log/httpd-error.log

0 comments: