Applicable to:
- Plesk Onyx for Linux
Symptoms
-
Unable to rebuild nginx configuration file in Plesk > Extensions > Webserver Configurations Troubleshooter > Rebuild :
CONFIG_TEXT: Template processing failed: file = /usr/local/psa/admin/conf/templates/default/nginxDomainVhost.php, error = Template_Exception: syntax error, unexpected 'endif' (T_ENDIF) file: /usr/local/psa/admin/plib/Template/Processor.php line: 28 code: 0 Previous error: Template_Exception: syntax error, unexpected 'endif' (T_ENDIF) file: /usr/local/psa/admin/plib/Template/Processor.php line: 28 code: 0 Previous error: Template_Exception: syntax error, unexpected 'endif' (T_ENDIF) file: /usr/local/psa/admin/plib/Template/Processor.php line: 23 code: 0.
-
Checking web server configuration via Plesk > Extensions > Webserver Configurations Troubleshooter > Check Configuration resulted in warning:
CONFIG_TEXT: Checking for custom configuration templatesCustom template /usr/local/psa/admin/conf/templates/custom/domain/nginxDomainVirtualHost.php has been foundCustom template /usr/local/psa/admin/conf/templates/custom/server.php has been foundSome custom configuration templates have been found. The customtemplates have higher priority than default templates in case ofconfigs generation.Please check documentation for details:http://download1.parallels.com/Plesk/PP11/11.0/Doc/en-US/online/plesk-linux-advanced-administration-guide/68693.htm[WARNING]
Cause
Invalid custom nginx
configuration templates.
Resolution
-
Connect to the server via SSH;
-
Review the template with the syntax error, remove it. Or move custom
nginx
configuration templates to another directory:# mv /usr/local/psa/admin/conf/templates/custom/ ~/
-
Recreate configuration files with the command:
# plesk repair web
Comments
0 comments
Please sign in to leave a comment.