How to Install Apache on CentOS 7. On this occasion I will write an article about how to install apache2 web server on centos 7. To create a web on a server you must install apache2, there are many web server other than apache, namely Cherokee, Hiawatha, Lighttpd, Nginx, Mongooses, Mongrel2, Saetta Web Server and there are still many more.
How installing it as follows:
- Install apache
# yum install httpd -y

2. Then start apache
# systemctl start httpd.service
3. Then enable apache at boot time
# systemctl enable httpd.service
4. Then add firewall rule-cmd
# firewall-cmd –permanent –zone=public –add-service=http
# firewall-cmd –permanent –zone=public –add-service=https
# firewall-cmd –reload
5. Then try opening a web browser and then access your server ip