Symptoms
-
Unable to start NGINX:
# service nginx start
nginx: [emerg] unknown directive "passenger_enabled" in /etc/nginx/plesk.conf.d/vhosts/example.com.conf:43 nginx: configuration file /etc/nginx/nginx.conf test failed -
The Phusion Passenger component is not installed according to Plesk Installer going to Tools & Settings > Updates & Upgrades > Add/Remove Components > Web Hosting:
-
The Phusion Passenger is installed in the system:
# dpkg -s passenger
Package: passenger
Status: install ok installed
Cause
Plesk does not support Phusion Passenger installed manually.
Resolution
-
Connect to the server via SSH.
-
Go to Tools & Settings > Updates & Upgrades > Add/Remove Components > Web Hosting and install Phusion Passenger server.
-
Start NGINX service:
# service nginx start