Design a site like this with WordPress.com
Get started

FYI -Apache file: httpd.conf

FYI -Apache file: httpd.conf

HTTP Daemon is a software program that runs in the background of a web server and waits for the incoming server requests. The daemon answers the request automatically and serves the hypertext and multimedia documents over the internet using HTTP.

httpd stands for Hypertext Transfer Protocol Daemon (i.e. web server).

httpd.conf is a configuration file which is used by the Apache HTTP Server. It is the file which Apache server looks at for its different configuration properties . Properties can be directly edited from the file using super user permissions.

The httpd.conf file can be located on any Unix-based system that complies with the Filesystem Hierarchy Standard under the following path: /etc/httpd/httpd.conf.

This file, httpd.conf was once used in Microsoft’s Internet Information Services(IIS)

Reference:a

https://en.wikipedia.org/wiki/Httpd.conf

https://en.wikipedia.org/wiki/Httpd

From https://help.ubuntu.com/lts/serverguide/httpd.html it will be worth knowing that the httpd.conf does no longer exist in newer versions of apache

Therefore this commands wont work as to check if apache is running

sudo service httpd status

or

/etc/init.d/httpd status 

You should also know that the path /etc/init.d/ exist but the file httpd doesnt.

To start apache use: sudo systemctl start apache2.service 

or

How to start Apache 2:

 sudo service apache2 start

How to stop Apache 2:

sudo service apache2 stop

How to restart Apache 2:

sudo service apache2 restart

How to reload Apache 2:

sudo service apache2 reload

Also:

/etc/init.d/apache2 restart  -to restart your main site’s apache service.

sudo systemctl status apache2.service -check status of apache if running.

or

sudo service apache2 status

or

/etc/init.d/apache2 status

Reference:

http://askubuntu.com/questions/718589/httpd-is-not-present-in-init-d

http://www.webhostingtalk.com/showthread.php?t=712742

http://www.cyberciti.biz/faq/ubuntu-linux-start-restart-stop-apache-web-server/

.

It will be good to note that if apache is running it doesnt mean that the HTTP connection is working. To test HTTP connection of apache you can read about telnet.