Setting up HTTPD on CentOS
By default the Apache web server is installed on CentOS but even if it is not, you can install it using the following command:
$ sudo yum install httpd
to start the service, type the following entry:
$ service httpd start
if you want to be able to access your pages externally, you need to open port 80 on the firewall. Open up the iptables file:
$ vim /etc/sysconfig/iptables
and add the following line to the end of the file right before COMMIT:
A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
save and exit, and then restart the firewall:
$ service iptables restart
The HTTP file location is in /var/www/
The index.html page should be in
/var/www/html