Symptoms
After update to the Plesk Obsidian 18.0.32, one of the following errors is displayed while making changes to the configuration of Plesk objects that assume Apache reconfiguration:
PLESK_ERROR: New files of configuration for Apache web server were not built due to errors in configuration templates:
Template processing failed: file = /usr/local/psa/admin/conf/templates/custom/server.php, error = Template_Exception:
[Template_Variable_Server_WebServer] Wrong variable to subsitute: webAppFirewallSettings
PLESK_ERROR: New files of configuration for Apache web server were not built due to errors in configuration templates:
Template processing failed: file = /opt/psa/admin/conf/templates/default/domainVhost.php, error = Template_Exception:
[Template_Variable_Domain_PhysicalHosting] Wrong variable to subsitute: webAppFirewallSettings file: /opt/psa/admin/plib/Template/Processor.php line: 28 code: 0
Cause
Product issue:
-
#PPPM-12586 "In Plesk Obsidian 18.0.32 and later, Apache configuration can no longer cause the webAppFirewallSettings variable error being shown in the Plesk interface."
Fixed in:- Plesk Obsidian 14 December 2020 (Linux)
Resolution
Workaround
If update is not possible for some reason you may try the following
workaround
Until the bug is fixed, apply the following workaround:
-
Connect to the server via SSH
-
Replace all
webAppFirewallSettings
withapacheWebAppFirewallSettings
:# sed -i ‘s/webAppFirewallSettings/apacheWebAppFirewallSettings/g’ /usr/local/psa/admin/conf/templates/custom/*.php
-
Rebuild web server configuration files:
# plesk repair web -y