Home MiscellaneousHow to Fix the “Address Already in Use: make_sock: could not bind to address [::]:443” Error

How to Fix the “Address Already in Use: make_sock: could not bind to address [::]:443” Error

by SupportPRO Admin
Apache Address Already in Use Error Fix

Introduction

Apache is one of the most popular web servers, but administrators sometimes face startup failures that stop websites from being accessible. One common error is:

(98) Address already in use: make_sock: could not bind to address [::]:443
(98) Address already in use: make_sock: could not bind to address 0.0.0.0:443

This error means that Apache cannot bind to port 443 because another process is already using it, or a previously terminated Apache process has not released the port. In some cases, large Apache log files or lingering semaphores can also stop Apache from starting correctly.

This article discusses the causes of the error and the steps needed to restore normal Apache operation.

Common Apache Socket Binding Errors

(98)Address already in use: make_sock: could not bind to address [::]:443
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs

Also check if Apache logs have exceeded the 2 GB limit.

1)Kill all nobody processes running on the server. Use the following script for doing that.
cijo@server [~]#for i in `ps auwx | grep -i nobody | awk {‘print $2’}`; do kill -9 $i; done
or
cijo@server [~]#for i in `lsof -i :80 | grep http | awk {‘ print $2’}`; do kill -9 $i; done
2) If Apache is not restarting after this. Remove the semaphore using the following script.
cijo@server [~]#for i in `ipcs -s | grep nobody | awk ‘{print $2}’`; do ipcrm -s $i; done
3) Restart Apache.

Conclusion

The “Address already in use: make_sock: could not bind to address [::]:443” error usually happens when another process is using port 443, Apache processes have not shut down properly, or old semaphores are stopping Apache from restarting. Administrators can quickly fix the web server by identifying and terminating conflicting processes, clearing semaphore entries, and verifying the sizes of the Apache log files.

Regular server monitoring and consistent log management can help avoid these problems and maintain website availability.

If you require help, contact SupportPRO Server Admin

Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value

You may also like

Leave a Comment