Symptoms
#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:
(https://pix.cobrasoft.org/images/2025/01/02/passenger.png)
- 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.
- Remove custom Phusion Passenger server.
- Log in to Plesk.
- Go to Tools & Settings > Updates & Upgrades > Add/Remove Components > Web Hosting and install Phusion Passenger server.
- Start NGINX service:
#service nginx start