In some cases, extra webserver configuration files remaining after removing domains might cause conflicts with webserver configuration rebuild process

Created:

2016-11-16 13:03:27 UTC

Modified:

2017-08-20 14:21:49 UTC

5

Was this article helpful?


Have more questions?

Anfrage einreichen

In some cases, extra webserver configuration files remaining after removing domains might cause conflicts with webserver configuration rebuild process

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Symptoms:

  • New configuration files of Apache webserver were not built due to errors in configuration templates: nginx: [emerg] a duplicate default server for XX.XX.XXX.XXX:443
  • Webserver Configuration Troubleshooter detects extra configurations.
  • Query returned a not empty result.:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow`  mysql -uadmin psa -e "select c.id, c.objectId as 'domain_id' from Configurations c left join domains d on c.objectId=d.id where c.objectType in ('domain', 'nginxDomain') and d.id is null" 
    

Cause

In some cases, after removing domains, their configuration files are not removed correctly, and this might cause conflicts during the webserver configuration rebuild process.

Resolution

  • Plesk Panel 11.x - 12.5: In the Webserver Configuration Troubleshooter extension , filter out all erroneous configurations with the help of the "Show Errors" button and remove them using the "Remove" button. Then click the "Rebuild All" button to rebuild the configurations.

  • Plesk Panel 10.4: Collect the IDs of the extra configurations:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow`  mysql -uadmin psa -e "select c.id, c.objectId as 'domain_id' from Configurations c left join domains d on c.objectId=d.id where c.objectType in ('domain', 'nginxDomain') and d.id is null;"
    
     +-----+-----------+
     | id  | domain_id |
     +-----+-----------+
     | 259 | 28        |
     | 260 | 28        |
     | 261 | 28        |
     +-----+-----------+``
    

    Then remove them:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow`  mysql -uadmin psa  -e "delete from Configurations where id in (259,260,261)"
    
Haben Sie Fragen? Anfrage einreichen
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.