PDA

View Full Version : Apache Can't Bind to Address?


WhiteFeather
17th May 2008, 11:13 PM
Hi all, my new Fedora 9 install doesn't seem to get apache running on boot.

When I run ps aux | grep http or ps aux | grep apache nothing shows up. When I run netstat, I don't see anything bound to port 80. Also, when I run /etc/init.d/apache status, it says "apache is stopped".

Unfortunately, when I run etc/init.d/apache start, it fails with error (98) can't bind to address, no ports are available for listening.

I've checked the firewall is open... anybody know what this is about?

stevea
18th May 2008, 03:21 AM
What netstat command options are you using ?
netstat -ntlp

also try ...
lsof - i:80
or
lsof -i :http
lsof -i :https

WhiteFeather
20th May 2008, 02:50 AM

Uh... just using "netstat". Using the -n flag will simply not do a name lookup, isn't that correct? And the other flags are simply filtering the results from netstat... no?

I can't use a remote browser to access the server, and I can't use a local web browser to go to http://localhost, either.

marcrblevins
24th May 2008, 10:02 AM
Try:

su -
chkconfig httpd on
service httpd restart

http://localhost