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]
From the Apache documentation:
You can check your configuration files for syntax errors without starting the server by using
apachectlconfigtest or the-tcommand line option.
Check the log files (usually in /var/log/apache2/ on Ubuntu) and move your question to Serverfault.com, because this is not programming related.
tail /var/log/apache2/error.log, what error messages are logged there?