Unable to start or install Nginx: Template_Exception Destination directory not exist

Created:

2016-11-16 12:40:46 UTC

Modified:

2017-08-08 13:29:28 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to start or install Nginx: Template_Exception Destination directory not exist

Applicable to:

  • Plesk 12.0 for Linux

Symptoms

Unable to start Nginx:

Template_Exception: Destination directory '/etc/nginx/plesk.conf.d/vhosts' not exist

Nginx installation failed with following error:

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

Cause

Nginx misconfiguration: /etc/nginx/plesk.conf.d/vhosts file is missing.

Resolution

  1. Create the missing directory:

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

    # /usr/local/psa/admin/bin/nginxmng -e
  3. If it could not be enabled, reconfigure server:

    # /usr/local/psa/admin/bin/httpdmng --reconfigure-all

Additional information:

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

Have more questions? Submit a request
Please sign in to leave a comment.