Mar 6, 2012

Apache cannot be started with the error "(98)Address already in use: make_sock: could not bind to address [::]:443 no listening sockets available

If you are getting the error as - Apache cannot be started with the error "(98)Address already in use: make_sock: could not bind to address [::]:443 no listening sockets available, shutting down. within Plesk 10.x for Linux, Plesk 9.x for Linux/Unix, Plesk 8.x for Linux/Unix

This error means that some other process already uses 443 (80) port and Apache cannot bind to it.

First of all make sure that the "Listen" directive is specified only once in the Apache configuration for one port. Check the httpd.conf and conf.d/* files in order to find it (on some OSes, SUsE and /etc/apache2/* should be checked).

Next, try to determine which process uses the port with the following command:

/usr/sbin/lsof -i | grep http

Such a problem may occur if Apache failed to stop properly. You need to kill this process and start Apache again. If you see that some another program uses the 443 port, you need to find from where it was
started and determine what it is because it could be a malicious script.

Run:

cat /proc/24717/cmdline
/usr/sbin/httpd-kgraceful


to find a command line with which this process was started. (24717 is the process' PID).

Then kill the process.

0 comments:

Post a Comment

 

Copyright © 2011 Best WebHosting Tips | Design by Kenga Ads-template