I've got a fresh Fedora 15 installation on my server that's been giving me trouble.

My first problem was that httpd wouldn't start. I kept getting an error that there was a segfault and the sysadmin eventually traced it back to a problem with mod_perl, so he removed it and httpd started fine.

I've had another very vexing problem recently, though: I get no response from Apache.

  • I can SSH into my server
  • I've got the right IP address
  • It pings
  • The httpd service is up and running
  • I've got an index.html file in the webroot
  • If I wget XX.XXX.XXX.XXX (the server's IP address) when SSH'd into the server itself, I get a response

But whenever I make a request to the server from any computer, regardless of ISP, I get no response - Chrome says it can't even connect. I'm absolutely stumped about how to fix it, and I've bugged the sysadmin quite a bit already. My robotics team gets this server space free from a company and I like to bug the sysadmin as little as possible about this kind of thing, but I suppose I'll have to if this question doesn't turn up any solutions.

Thanks for any help.

link|improve this question

80% accept rate
1  
Have you checked to see if the firewall is running on the server? It is possible that it is an blocking external port 80/433 requests – enterzero Oct 7 '11 at 4:38
feedback

1 Answer

up vote 1 down vote accepted

Sounds like a firewall issue if wget works from the command line.

Temporarily disable the firewall using:

service iptables stop

If it works then you know you need to add a rule to your firewall to allow port 80 and or 443.

link|improve this answer
Awesome! Thanks, that solved it! How would I go about adding exceptions for a general purpose webserver doing FTP, HTTP, and the like? – TreyK Oct 7 '11 at 5:31
1  
This will tell you how - cyberciti.biz/tips/… – enterzero Oct 7 '11 at 5:33
Depends on if you have a GUI installed or not. Being you are using Fedora rather than CentOS I figure there may be a chance you do. If you have the tool available and are running on a graphical dekstop using system-config-firewall may be easier. Do not go back and forth between command line and system-config-firewall though because one will overwrite the other. – digitaladdictions Oct 7 '11 at 5:54
I don't have a GUI, no. Really not too much need for one, although I could see how it could come in handy to simplify things. – TreyK Oct 7 '11 at 21:20
feedback

Your Answer

 
or
required, but never shown

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