Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
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

1 Answer 1

up vote 2 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.

share|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

Your Answer

 
discard

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.