Can't connect to my Apache

Discussion in 'Server Operation' started by rookie, Apr 22, 2005.

  1. rookie

    rookie New Member

    Help! I cannot connect to Apache... :(

    Code:
    ps aux
    says it's running, and

    Code:
    netstat -tap
    says the same... But in my browser, I get no pages... :confused:
     
  2. mike

    mike New Member

    Seems as if your firewall (iptables) is blocking port 80. Shut your firewall down and see if that makes a difference.

    Or, it could be that your Apache is listening only on certain IP addresses (and not the one that you tried...)

    Mike
     
  3. rookie

    rookie New Member

    How can I shut down my firewall? :confused:
     
  4. yannick

    yannick New Member

    Depends on your distro and on your firewall... In general it's a good idea to have a look at the init scripts in /etc/init.d. Maybe there's one with the string "firewall" in it? If so, run

    Code:
    /etc/init.d/<name_of_the_script> stop
    and then

    Code:
    iptables -L
    to see if it has really stopped. If this doesn't help or you can't find an init script for your firewall run

    Code:
    iptables -F
    That flushes all you firewall rules.

    Yannick
     
  5. Sean Montgomery

    Sean Montgomery New Member

Share This Page