Plesk for Linux
kb: technical
nginx
Applicable to:
- Plesk for Linux
Symptoms
-
Nginx service fails to start due to one or more errors of modules which cannot be properly loaded such as
brotliand/or others:[emerg] 13807#13807: unknown directive "brotli" in /etc/nginx/conf.d/brotli.conf:1
- All websites are showing "Web Server’s Default Page"
-
While checking the nginx packages, third party sources are found installed and the one provided by Plesk (
sw-nginx) removed:# dpkg -l | grep nginx
ii nginx
ii nginx-common
rc sw-nginx
Cause
The nginx installed packages are not provided by Plesk.
Resolution
-
Remove all third party nginx packages:
# dpkg --remove nginx nginx-common && dpkg --purge nginx nginx-common
- Remove the Nginx web server and reverse proxy server component via Plesk Installer if found installed under Web hosting section.
-
Remove leftovers of the Plesk
sw-nginxpackage:# dpkg --purge sw-nginx
- Install and enable Plesk provided Nginx as instructed here.
Comments
Please sign in to leave a comment.