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- After installing Plesk Obsidian the following error is shown in UI:
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'
- nginx was installed before Plesk, most likely from nginx.org.
CausePlesk 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.
Resolution1.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