Web server reconfiguration error: Destination directory /etc/nginx/plesk.conf.d/vhosts not exist

Refers to:

  • Plesk 12.5 for Linux

Created:

2016-11-16 12:41:27 UTC

Modified:

2017-02-20 20:56:57 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Web server reconfiguration error: Destination directory /etc/nginx/plesk.conf.d/vhosts not exist

Symptoms

Web server is down after Plesk migration:

[2015-11-10 11:27:03] ERR [panel] Apache config (14471506850.04034900) generation failed: Template_Exception: Destination directory '/etc/nginx/plesk.conf.d/vhosts' not exist

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
Destination directory '/etc/nginx/plesk.conf.d/vhosts' not exist

[2015-11-10 11:50:04] ERR [panel] Apache config (14471525560.08224600) generation failed: Template_Exception: Destination directory '/etc/nginx/plesk.conf.d/wildcards' not exist

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
[2015-11-10 11:50:04] ERR [1] Destination directory '/etc/nginx/plesk.conf.d/wildcards' not exist

stdout:
websrvmng: Unable to chdir to /etc/nginx/plesk.conf.d: No such file or directory
System error 2: No such file or directory

Cause

Nginx misconfiguration: the required directories are missing.

Resolution

  1. Recreate the missing directories:

    # mkdir -p /etc/nginx/plesk.conf.d/vhosts
    # mkdir -p /etc/nginx/plesk.conf.d/wildcards
    # mkdir -p /etc/nginx/plesk.conf.d
  2. Disable Nginx:

    # /usr/local/psa/admin/sbin/nginxmng -d
  3. Reconfigure Apache:

    # /usr/local/psa/admin/bin/httpdmng --reconfigure-all
  4. Enable Nginx:

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