Symptoms
The following error message is displayed on the Home page in Plesk:
New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] unknown directive "passenger_enabled" in /etc/nginx/plesk.conf.d/vhosts/example.com.conf:45 nginx: configuration file /etc/nginx/nginx.conf test failed....
Cause
Phusion Passenger module isn't enabled in Nginx.
Resolution
-
Connect to the Plesk server via SSH.
-
Enable the module:
# echo "load_module nginx/modules/ngx_http_passenger_module.so;" > /etc/nginx/modules.conf.d/phusion-passenger.conf
-
Reload the nginx service:
# systemctl reload nginx
-
Remove the obsolete error messages:
# plesk db "delete from Configurations where status <> 'ok' and description like '%passenger%'"