Apache web server is renowned open source free of cost software, included many valuable characteristics for various websites, this is used for all in a surface of private to professional web pages.
Step 1 – Setup httpd:
Step 2 – Check Version of Apache:
Step 3 – Changing host file:
[root@localhost ~]# vi /etc/hosts
Step 4 – To Configure Apache httpd service
[root@localhost ~]#vi /etc/httpd/conf/httpd.conf
Step 5 – Restart httpd service
[root@localhost ~]#/sbin/service httpd restart
Or
[root@localhost ~]#/etc/init.d/httpd restart
Step 6 – Check httpd status
[root@localhost ~]# /etc/init.d/httpd status
Step 7 – Stop httpd service
[root@localhost ~]#/etc/init.d/httpd stop
Step 8 – Start httpd service
[root@localhost ~]#/etc/init.d/httpd start
Step 9 – Make Auto Start httpd on boot
[root@localhost ~]#chkconfig httpd on