• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Unable to configure the web server error

charlieclewer

New Pleskian
Server operating system version
Ubuntu 20.04.6 LTS
Plesk version and microupdate number
Plesk Obsidian Version 18.0.51
I'm having this issue in my plesk since a few days ago:

Unable to configure the web server: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all [1] => -skip-removing ) Details: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-server [1] => -no-restart ) Details: [2023-05-09 23:19:39.010] 690353:645ab8eb0247c ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/nginx-config' '-t'] with exit code [1] [2023-05-09 23:19:39.168] 690353:645ab8eb0247c ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/nginx-config' '-t'] with exit code [1] [2023-05-09 23:19:39.179] 690353:645ab8eb0247c ERR [panel] Apache config (16836671780.77680700) generation failed: Template_Exception: nginx: [emerg] open() "/etc/nginx/plesk.conf.d/vhosts/demo2.clewerit.com.conf" failed (2: No such file or directory) in /etc/nginx/conf.d/zz010_psa_nginx.conf:7 nginx: configuration file /etc/nginx/nginx.conf test failed file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php line: 75 code: 0 nginx: [emerg] open() "/etc/nginx/plesk.conf.d/vhosts/demo2.clewerit.com.conf" failed (2: No such file or directory) in /etc/nginx/conf.d/zz010_psa_nginx.conf:7 nginx: configuration file /etc/nginx/nginx.conf test failed

I've tried to reread Ip in IP Addressess but it did not work (saw this suggestion in the forum)

Any idea what could it be?
 
1) On the console as root: rm /etc/nginx/plesk.conf.d/vhosts/demo2.clewerit.com.conf
2) Login to Plesk GUI
3) Tools & Settings > Assistance & Troubleshooting > Webserver Configurations Troubleshooter
4) Button "Rebuild", select "Broken"
 
Back
Top