Kurinchi Blogger Scribbles …


Jul 20
2015

Apache webserver (httpd) service installation on CentOS 7 Linux

Last updated: July 22nd, 2015

First set up the httpd (web) service

$ yum install httpd

If httpd service is already installed, update the service

$ yum update httpd

Now, start the web server

$ service httpd start

Redirecting to /bin/systemctl start httpd.service

Check the status of the web server

$ service httpd status

By default, port 80 is blocked and the firewall rules need to be changed in order to enable http access

$ firewall-cmd –zone=public –add-port=80/tcp –permanent

$ firewall-cmd –reload

For users who are testing the virtualbox CentOS setup and are trying to access the web server in their host machine, make sure that the firewall block is removed.

Now you should be able to access the web server by keying in the IP address of the server.

To enable apache web server start after reboot, key in the command

$ systemctl enable httpd

Tags: , , , , , , ,

Leave a Reply


Valid HTML 4.01 Strict  Valid HTML 4.01 Strict