Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I hav installed apache2 & php 5.3x on centos 6.3 by using following commands:

yum install httpd
yum install php

Now I'm trying to access php page from my local machine browser using following ur:


I cannot access my above php page from browser and when i check apache logs, it doesnt show any hit, though I am connected to server locally.. but i can see some text when i access it from centOS command line by:

lynx > Http://localip/info.php

I'm unable to understand why I can access this page even when php is installed and apache is also working..

share|improve this question
Check the firewall configuration on the server to see if that is where your problem is. – Frederik Nielsen Aug 8 '12 at 9:47
I'm able to connect to server through putty... which means I have no connectivity issue with server... – user131274 Aug 8 '12 at 9:51
SSH is one thing - HTTP is another. I would still check the firewall. – Frederik Nielsen Aug 8 '12 at 9:54
Please post a content of your /etc/sysconfig/iptables from the server – Alex Aug 8 '12 at 9:55
Okay its working.. After disabling ip tables it worked.. – user131274 Aug 8 '12 at 9:56
up vote 2 down vote accepted

I would check the firewall configuration to see if it allows HTTP traffic to be sent to the server.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.