Plesk

Error on the Home page in Plesk: unknown directive “passenger_enabled”

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

  1. Connect to the Plesk server via SSH.

  2. Enable the module:

    # echo "load_module nginx/modules/ngx_http_passenger_module.so;" > /etc/nginx/modules.conf.d/phusion-passenger.conf

  3. Reload the nginx service:

    # systemctl reload nginx

  4. Remove the obsolete error messages:

    # plesk db "delete from Configurations where status <> 'ok' and description like '%passenger%'"

Exit mobile version