PDA

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


WhiteFeather
2008-05-17, 04:13 PM CDT
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
2008-05-17, 08:21 PM CDT
What netstat command options are you using ?
netstat -ntlp

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

WhiteFeather
2008-05-19, 07:50 PM CDT
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
2008-05-24, 03:02 AM CDT
Try:

su -
chkconfig httpd on
service httpd restart

http://localhost