How to Install Apache Web Server on CentOS 7

CentOS Linux Forum
Post Reply
User avatar
hepek
Site Admin
Posts: 451
Joined: 24 Oct 2018, 00:03
Location: @HEPEK HQ
Contact:

How to Install Apache Web Server on CentOS 7

Post 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/
Post Reply

Return to “CentOS Linux”