Applicable to:
- Plesk for Linux
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.
-
Connect to the server via SSH
-
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}
-
Rebuild web server configuration by using Plesk Webserver Configuration Troubleshooter in Plesk GUI
-
If the issue persists, move all the custom templates:
# mv /usr/local/psa/admin/conf/templates/custom{,.old}
-
Delete information about failed configuration:
# plesk db "delete from Configurations where status='error'"
-
Rebuild web server configuration by using Plesk Webserver Configuration Troubleshooter in Plesk GUI
Comments
0 comments
Please sign in to leave a comment.