Hi,
i restarted my apache and now im getting this error.
Stopping httpd: [FAILED] Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80 no listening sockets available, shutting down Unable to open logs [FAILED]
On 3/21/07, Mark Quitoriano markquitoriano@gmail.com wrote:
Hi,
i restarted my apache and now im getting this error.
No you didn't, because.....
Stopping httpd: [FAILED]
Shutting it down failed for some reason. You'll need to check your logs to see what happened.
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
When you get errors like this, you can use lsof to see what's holding the ports open. For example:
lsof -i TCP:80 -a -u apache
This would show you anything holding a TCP socket on port 80 owned by the apache user.
On 3/22/07, Jim Perrin jperrin@gmail.com wrote:
On 3/21/07, Mark Quitoriano markquitoriano@gmail.com wrote:
Hi,
i restarted my apache and now im getting this error.
No you didn't, because.....
Stopping httpd: [FAILED]
Shutting it down failed for some reason. You'll need to check your logs to see what happened.
oh sorry that's that second time i did the command it succesfully shutdown in the first try but did'nt went up.
Mark Quitoriano wrote:
Hi,
i restarted my apache and now im getting this error.
Stopping httpd: [FAILED] Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80 no listening sockets available, shutting down Unable to open logs [FAILED]
it's saying it thinks port 80 is taken. lsof is a good program, I forget it it's netstat or another that could show you active connections to port 80.
which version of apache are you running, is that apache the centos version or the apache.org source, what OS version of Centos, and can you run ps ax | grep httpd and see if there's another instance of apache running.
also do an ls -al /usr/local/apache/logs and/or /var/local/apache/logs depending on where you keep these...
yum install multitail will give you a nice program where you can type:
multitail -s 2 /var/log/messages /usr/local/apache/logs/error_log /usr/local/apache/logs/access_log
it'll display all your logs in real time, and you can use another window (or a program like screen) to stop/start apache, and see what it's crying about.
If the server is new, maybe yum remove httpd, reboot, yum install httpd, your call.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos