Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Nov 07, 2025, 07:07 AM

Title: Web server reconfiguration on Plesk server fails: Destination directory not
Post by: Suhitha on Nov 07, 2025, 07:07 AM
Question: Web server reconfiguration on Plesk server fails: Destination directory not exist


Applicable to:




Symptoms

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


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

1.Connect to the server via SSH.

2.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

3.Disable nginx:

# /usr/local/psa/admin/sbin/nginxmng -d

4.Enable nginx back if required:

# /usr/local/psa/admin/sbin/nginxmng -e