How to install Web Server on RHEL7


1. Update System Packages


sudo yum update -y

2. Install Apache HTTPD

sudo yum install httpd -y

3. Start and Enable Apache


sudo systemctl start httpd
sudo systemctl enable httpd

4. Configure Firewall (Allow HTTP/HTTPS)

sudo firewall-cmd --permanent --add-service=http
sudo firewall-cmd --permanent --add-service=https
sudo firewall-cmd --reload

OR

You can disable the firewall
sudo systemctl stop firewall

5. Verify Installation

http://<your-server-IP>




Previous Post Next Post