PDA

View Full Version : Can't connect to my Apache


rookie
22nd April 2005, 13:43
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:

mike
22nd April 2005, 19:54
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

rookie
23rd April 2005, 20:12
How can I shut down my firewall? :confused:

yannick
23rd April 2005, 21:01
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.

Yannick