How to Install Apache Web Server on CentOS 7 / RHEL 7 / Sl 7 / OL 7. Apache Web server is the most popular Web servers in the Hosting industries. The Apache has rich web features that makes it popular in the web hosting industries. Apache is the open source web software. this tutorial shows how to install the Apache Web server on your enterprise Linux with ease. You can install it in effective way by following all the steps carefully shown in given tutorial.

How to Install Apache Web Server on EL 7?

Step-1 (Switch to the root user)
[gopal@techbrown ~]$ su -
Password:
Last login: Wed Jun 29 21:16:57 IST 2016 on pts/0
Step-2 (Install Apache using YUM command)
[root@techbrown ~]# yum group install "web server"
Step-3 (Start the Apache Services)
[root@techbrown ~]# systemctl start httpd
Step-4 (Enable Apache services automatically at every boot)
[root@techbrown ~]# systemctl enable httpd
ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service'
Step-5 (Default directory of Apache where all the files are located)
[root@techbrown ~]# ls -l /var/www/html
Step-6 (Default Apache Configuration files)
[root@techbrown ~]# vi /etc/httpd/conf/httpd.conf
Step-7 (Default Apache Configuration file located at “conf.d” directory)
[root@techbrown ~]# vi /etc/httpd/conf.d/
autoindex.conf fcgid.conf manual.conf README ssl.conf userdir.conf welcome.conf
Step-8 (Default Apache Configuration file located at “conf.modules.d” directory)
[root@techbrown ~]# vi /etc/httpd/conf.modules.d/
00-base.conf 00-lua.conf 00-proxy.conf 00-systemd.conf 10-fcgid.conf
00-dav.conf 00-mpm.conf 00-ssl.conf 01-cgi.conf
Step-9 (Check Whether its is working or not)

Open your Web Browser and type 127.0.0.1 and check whether it is working or not.
apache

Final Words

Congratulation now you have installed the Apache Web server on your respective enterprise Linux with ease. If you have any question and issues regarding this topic you can use the comment section below.

Related Guides!