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
First step is to install dependencies $ sudo yum groupinstall "Development Tools" $ sudo yum install kernel-devel Mount the Virtualbox...