Installed Apache on Linux But IP not working

I have recently installed Apache web server on CentOs and I tried to run my IP address on the browser but it’s not working or run

or just installed yum install httpd Apache and checked the IP but now working.

This error comes because by default the CentOS installs the firewall for protection, Just I added some commands then IP working fine.

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

this command enables the request to a run website or whatever on the VPS and centos system

Leave a Reply