[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apache error



On Wed February 18 2009, Florian Kulzer wrote:
> > (98)Address already in use: make_sock: could not bind to address [::]:80
> > (98)Address already in use: make_sock: could not bind to address
> > 0.0.0.0:80 no listening sockets available, shutting down
> > Unable to open logs
> >  failed!
>
> Try these commands to see which process is bound to port 80:
>
> lsof -i :80
> netstat -plant | grep ':80 '

actually, I almost figured that out, I also setup nginx on port 80:
# lsof -i :80
COMMAND   PID     USER   FD   TYPE  DEVICE SIZE NODE NAME
nginx   23139     root    6u  IPv4 4859411       TCP *:www (LISTEN)
nginx   23140 www-data    6u  IPv4 4859411       TCP *:www (LISTEN)
nginx   23141 www-data    6u  IPv4 4859411       TCP *:www (LISTEN)

so I killed nginx, but still got the same error, so I changed apache to port 
8000. Nothing else is using that port:
# netstat -plant | grep ':8000 '
paulandcilla:/etc/apache2# lsof -i :8000
paulandcilla:/etc/apache2# 

yet still..
# /etc/init.d/apache2 restart
Restarting web server: apache2(98)Address already in use: make_sock: could not 
bind to address [::]:8000

this still doesn't answer my original question of how to actually remove all 
the config files for apache, and basically start over.

-- 
Paul Cartwright
Registered Linux user # 367800
Registered Ubuntu User #12459


Reply to: