Quantcast
Channel: Kurinchi Blogger Scribbles ... » centos 7
Viewing all articles
Browse latest Browse all 2

Apache webserver (httpd) service installation on CentOS 7 Linux

$
0
0

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


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles



Latest Images