Address already in use: make_sock: could not bind to address

Refers to:

  • Plesk 12.5 for Linux

Created:

2016-11-16 13:20:15 UTC

Modified:

2017-02-14 10:18:07 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Address already in use: make_sock: could not bind to address

Symptoms

Apache is down ans cannot start with the following error:

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

An attempt to reconfigure domains fails:

# /usr/local/psa/admin/bin/httpdmng --reconfigure-all
Error occured while sending feedback. HTTP code returned: 502
Error occured while sending feedback. HTTP code returned: 502

Cause

Duplicate entries in Apache configuration file.

Resolution

  1. Find the duplicated entries:

    # grep Listen /etc/httpd/conf/httpd.conf

    Listen 80
    Listen 80
  2. Remove one Listen entry and restart Apache:

    # service httpd restart
  3. Reconfigure Apache:

    # /usr/local/psa/admin/bin/httpdmng --reconfigure-all
Have more questions? Submit a request
Please sign in to leave a comment.