I was recently setting up a web server on #centos with apache and php. The installation of #apache was fine, but the http port of the system was not accessible from outside. This is because centOS by default has some #iptables #firewall rules in effect. Only the #ssh port (22) was accessible and remote shell worked. So its necessary to open up port 80 for webserver like nginx to work.