Feisty, can't connect to localhost

Derek Broughton news at pointerstop.ca
Sat Jul 21 20:48:42 UTC 2007


Dan Stieg wrote:

> I am trying to set up apache. I installed both apache and apache2 and am
> unable to connect to localhost through Firefox or telnet. I added port
> 80 to iptables. sudo telnet localhost gives:
> 
> Trying 127.0.0.1...
> telnet: Unable to connect to remote host: Connection refused

By default, port 80 shouldn't be blocked, so I see two possibilities. 
Either you wrote the rule wrong and _now_ you're blocking it, or apache
isn't really running.

First, decide which apache you want.  I see no good reason to
install "apache" for a fresh install, so install "apache2".

Then use ps to make sure it's running.
-- 
derek





More information about the ubuntu-users mailing list