How to Install Apache on CentOS 7

0
2304

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:

  1. Install apache

# yum install httpd -y

install apache2

2. Then start apache

# systemctl start httpd.service

apache 2

3. Then enable apache at boot time

# systemctl enable httpd.service

apache3

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

apache4

5. Then try opening a web browser and then access your server ip

apache5

NO COMMENTS

LEAVE A REPLY

This site uses Akismet to reduce spam. Learn how your comment data is processed.