Symptoms
-
The following error message is shown on the Home page in Plesk:
New configuration files for the Apache web server were not created due to the errors in configuration templates: Destination directory '/etc/nginx/plesk.conf.d/vhosts' not exist . Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter
-
Missing nginx directories are shown in
/var/log/plesk/panel.log
:ERR [panel] Apache config (14471506850.04034900) generation failed: Template_Exception: Destination directory '/etc/nginx/plesk.conf.d/vhosts' not exist
...
ERR [panel] Apache config (14471525560.08224600) generation failed: Template_Exception: Destination directory '/etc/nginx/plesk.conf.d/wildcards' not exist
...
ERR [panel] Apache config (16050753430.57666500) generation failed: Template_Exception: Destination directory '/etc/nginx/plesk.conf.d/ip_default' not exist
Cause
nginx misconfiguration: the required directories are missing.
Resolution
-
Connect to the server via SSH.
-
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/ip_default -
Disable nginx:
# /usr/local/psa/admin/sbin/nginxmng -d
-
Enable nginx back if required:
# /usr/local/psa/admin/sbin/nginxmng -e