Webserver Configurations Troubleshooter detects extra configuration or shows a

Started by Suhitha, Nov 26, 2025, 01:15 AM

Previous topic - Next topic

Suhitha

Question: Webserver Configurations Troubleshooter detects extra configuration or shows a false positive report on the Home page


Applicable to:

  • Plesk for Linux



Symptoms

  • One of the following messages might appear on Plesk Home:
Error: New configuration files for the Apache web server were not created due to the errors in configuration templates: ...

Due to the following errors in the configuration templates, no new configuration files could be created for the Apache webserver: Can not restart web server: graceful restart failed, perform full restart httpd stop failed 9 / usr / sbin / httpd processes are killed

Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = Template_Exception: No data. file: /usr/local/psa/admin/plib/Template/Processor.php line: 28 code: 0 Previous error: <...>

  • When opening Tools & Settings > Webserver Configurations Troubleshooter and filtering status by "Error", records with "File Path: N/A" or "Related domain: Deleted" are shown.

  • Webserver Configurations Troubleshooter shows one of the following messages:
  • When checking configurations:
There is an extra configuration with id X belongs to the missed domain with id Y
  • When rebuilding configurations:

Error: Can not reconfigure web server configurations: Unable to execute httpdmng: Domain with name '' does not exist

  • Apache and nginx (if enabled) web-servers are up and running and their configuration is does not have any errors:

# apachectl -t
Syntax OK

# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful


Cause

The Plesk database contains records about non-existent configuration files or old error messages.


Resolution

Remove the old information via Plesk:

1.Log in to Plesk.

2.Go to Tools & Settings > Webserver Configurations Troubleshooter.

Note: If Webserver Configurations Troubleshooter is not shown, install it using Plesk Installer.

3.Click the mceclip1.png button > set Status search filter to Error from the drop-down menu:



4.The list of broken configuration files will appear. Select all, then click Rebuild > Selected.

5.If configuration files could not be repaired, select them and click Remove.

6.Click Check configuration to make sure there is no broken configuration left.


                      Removing the old information via SSH connection
 


1.Connect to the Plesk server via SSH.

2.Create a folder for temporary files:

# mkdir -p /tmp/plesksupport

3.Create a file with affected domains:

# MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin psa -Ne"select name from domains where id in (select objectId from Configurations where status<>'ok')" > /tmp/plesksupport/domainlist.txt

4.Reconfigure the affected domains:

# cat /tmp/plesksupport/domainlist.txt | while read domain; do plesk repair web -y $domain; echo "$domain - success"; done

# plesk repair web -server

5.Remove broken configuration entries from the Plesk database:

# plesk db "delete from Configurations where status <> 'ok'\G"

6.Validate configuration files:

# plesk repair web -validate-configuration