Enabling `nginx` service fails

Refers to:

  • Plesk 11.5 for Linux

Created:

2016-11-16 13:02:29 UTC

Modified:

2017-02-11 18:39:51 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Enabling `nginx` service fails

Symptoms

Enabling nginx service fails with error in panel.log :

nginx: [emerg] listen() to 70.32.110.97:80, backlog 511 failed (98: Address already in use)
nginx: configuration file /etc/nginx/nginx.conf test failed

Cause

Apache configuration files for some domains are corrupted or missing.

Resolution

To fix the issue on your server the following was done:

  1. Disable nginx service:

    # /usr/local/psa/admin/bin/nginxmng -d
  2. Rebuild Apache configuration files:

    # /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
  3. Enable nginx :

    # /usr/local/psa/admin/bin/nginxmng -e
  4. Check nginx service status:

    # /usr/local/psa/admin/bin/nginxmng -s
    Enabled
Have more questions? Submit a request
Please sign in to leave a comment.