when I am trying to start or stop or restart the apache server in Ubuntu. It's going to fail and no error is showing. Only following is displayed:

# /etc/init.d/httpd start
Starting httpd:                                            [FAILED]
# /etc/init.d/httpd stop
Stopping httpd:                                            [FAILED]
  • try executing tail /var/log/apache2/error.log, what error messages are logged there? – aularon Sep 2 '10 at 11:19

From the Apache documentation:

You can check your configuration files for syntax errors without starting the server by using apachectl configtest or the -t command line option.

| improve this answer | |

Check the log files (usually in /var/log/apache2/ on Ubuntu) and move your question to Serverfault.com, because this is not programming related.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy