Cobra Forum

Plesk Panel => Webserver => Topic started by: Suhitha on Nov 04, 2025, 03:03 AM

Title: Error in Plesk after update: Template_Exception: nginx: [emerg] unknown
Post by: Suhitha on Nov 04, 2025, 03:03 AM
Question: Error in Plesk after update: Template_Exception: nginx: [emerg] unknown directive "brotli" in /etc/nginx/conf.d/brotli.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed


Applicable to:

Plesk for Linux


Symptoms

After a Plesk update, the following error is displayed in Plesk:

Unable to generate the web server configuration file on the host <example.com> because of the following errors:
Template_Exception: nginx: [emerg] unknown directive "brotli" in /etc/nginx/conf.d/brotli.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed
file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
Please resolve the errors in web server configuration templates and generate the file again.


Cause

This is considered a Plesk bug #PPPM-12735 which will be fixed in an upcoming product release.
It is related to the lack of Lock usage in the nginx driver methods for module management.


Resolution

Until the bug is resolved the following workaround is available:

1.Connect to the server via SSH

2.Re-generate the webserver configuration files with the command:

# plesk sbin httpdmng --reconfigure-all