Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Oct 23, 2025, 02:11 AM

Title: Plesk Obsidian shows the following error after installation: failed to create
Post by: Suhitha on Oct 23, 2025, 02:11 AM
Question: Plesk Obsidian shows the following error after installation: failed to create file via template '/etc/nginx/plesk.conf.d/server.conf.XXXXXX


Applicable to:



Symptoms


Unable to configure the web server: Execution failed. Template_Exception: mkdir: cannot create directory '/etc/nginx/plesk.conf.d': No such file or directory mktemp: failed to create file via template '/etc/nginx/plesk.conf.d/server.conf.XXXXXX'



Cause

Plesk fails to generate configuration files if nginx was installed before Plesk.

This has been reported as bug ID PPPM-11215 which will be fixed in future updates.


Resolution

1.Connect to the server via SSH.

2.Reinstall Plesk nginx package:

# dpkg --force-confmiss -i /var/cache/apt/archives/sw-nginx*

3.Disable/enable Nginx to rebuild configuration files:

# plesk sbin nginxmng -d
# plesk sbin nginxmng -e