Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to fix Apache cannot be started with the error “(98)Address already in use  (Read 3097 times)

0 Members and 1 Guest are viewing this topic.


  • Guest
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

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,  /etc/apache2/* should be checked).

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

Code: [Select]
# /usr/sbin/lsof -i | grep http
httpd 14234 apache 4u IPv6 9672930 TCP *:https (LISTEN)

This command shows that the “TCP *:https ” port is used by “httpd” process with PID  14234

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.


# cat /proc/14234/cmdline

to find a command line with which this process was started. (14234 is the process’ PID). Then kill the process.