Plesk

Plesk error: Template processing failed. TemplateException

Symptoms

The following error is shown in Plesk GUI:

New configuration files for the Apache web server were not created due to the errors in configuration templates:
Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhostIpDefault.php,
error = TemplateException:
...

Cause

Corrupted or invalid Custom Template configuration file.

Resolution

Warning: Reconfiguration of web server configurations implies downtime, which depends on the number of domains.

  1. Connect to the server via SSH

  2. Create a backup of /usr/local/psa/admin/conf/templates/custom/domain/domainVirtualHost.php using the following command:

    # mv /usr/local/psa/admin/conf/templates/custom/domain/domainVirtualHost.php{,.backup}

  3. Rebuild web server configuration by using Plesk Webserver Configuration Troubleshooter in Plesk GUI

  4. If the issue persists, move all the custom templates:

    # mv /usr/local/psa/admin/conf/templates/custom{,.old}

  5. Delete information about failed configuration:

    # plesk db "delete from Configurations where status='error'"

  6. Rebuild web server configuration by using Plesk Webserver Configuration Troubleshooter in Plesk GUI

Exit mobile version