Page 1 of 1

How to Install Apache Web Server on CentOS 7

Posted: 13 Apr 2020, 21:49
by hepek
How to Install Apache Web Server on CentOS 7

Installing Apache on CentOS

1: Update Software Versions List

Code: Select all

sudo yum update
2: Install Apache

Code: Select all

sudo yum install httpd
3: Activate Apache

Code: Select all

sudo systemctl start httpd
4: Start Apache start when the system boots

Code: Select all

sudo systemctl enable httpd
5: Verify Apache Service Status

Code: Select all

sudo systemctl status httpd
6: Configure firewalld to Allow Apache Traffic

Code: Select all

sudo firewall-cmd --zone=public --permanent --add-service=http

Code: Select all

sudo firewall-cmd --zone=public --permanent --add-service=https

Code: Select all

sudo firewall-cmd --reload
7: Open Page in Browser

Code: Select all

http://IP Address/