Installing Apache on CentOS
1: Update Software Versions List
Code: Select all
sudo yum update
Code: Select all
sudo yum install httpd
Code: Select all
sudo systemctl start httpd
Code: Select all
sudo systemctl enable httpd
Code: Select all
sudo systemctl status httpd
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
Code: Select all
http://IP Address/