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... :(

    ps aux
    says it's running, and

    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...)

  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

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

    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

    iptables -F
    That flushes all you firewall rules.


Share This Page