• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Passenger root not working, websites won't load

xgenesis

Basic Pleskian
I updated from Plesk 12 to Plesk Onyx and now I get this error.

New configuration files for the Apache web server were not created due to the errors in configuration templates: nginx: [emerg] unknown directive "passenger_root" in /etc/nginx/conf.d/phusion-passenger.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed . Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter

Can someone please help I don't know what to do. I tried uninstalling and reinstalling passenger. None of my websites load.
 
Check this post #5

I'm not sure what that means. What does the term "directive" mean, in regards to the Passanger Plesk module, it's installed just not working.

Edit: It does say passenger_root and load_module when I open both files.
 
Last edited:

I'm up to date, when I try running nginx restart though I get this error.

[emerg] unknown directive "passenger_root" in /etc/nginx/conf.d/phusion-passenger.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed

This is my phusion-passenger.conf

passenger_root /usr/share/passenger/phusion_passenger/locations.ini

Also when I ran this command:

dpkg -l sw-nginx '*passenger*' | cat

I received this output

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================================-=======================================-============-===================================================================================================
ii libapache2-mod-passenger-plesk 5.0.30-ubuntu14.04.16102716 amd64 Apache module and configuration for Phusion Passenger
ii passenger 5.0.30-ubuntu14.04.16102716 amd64 Phusion Passenger application server
ii passenger-dev 5.0.30-ubuntu14.04.16102716 amd64 Phusion Passenger development files
ii passenger-native-libs 5.0.30-ubuntu14.04.16102716 amd64 Phusion Passenger native extensions
ii sw-nginx 1.11.4.1-ubuntu14.04.16100518 amd64 High performance web and reverse proxy server
un sw-nginx-passenger <none> <none> (no description available)

Any help?

Edit: Its weird because it does say that phusion is installed.

h_1482297915_7795963_94fbf62084.png
 
# cat /etc/nginx/conf.d/phusion-passenger.conf
passenger_root /usr/share/passenger/phusion_passenger/locations.ini;

# nginx -V
nginx version: nginx/1.11.4
built with OpenSSL 1.0.2j 26 Sep 2016
TLS SNI support enabled
configure arguments: --prefix=/usr/share --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --modules-path=/usr/share/nginx/modules --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --user=nginx --group=nginx --with-ipv6 --with-file-aio --with-http_v2_module --with-http_ssl_module --with-http_realip_module --with-http_sub_module --with-http_dav_module --with-http_gzip_static_module --with-http_stub_status_module --with-openssl=/home/builder/buildbot/nginx-1.11.4-bcos7x64/build/nginx/work/openssl-1.0.2j --with-openssl-opt='enable-tlsext zlib no-idea no-mdc2 no-rc5 no-ssl2 no-shared -fpic'
--add-dynamic-module=/usr/share/passenger/ngx_http_passenger_module

Do you have it?
 
# cat /etc/nginx/conf.d/phusion-passenger.conf
passenger_root /usr/share/passenger/phusion_passenger/locations.ini;

# nginx -V
nginx version: nginx/1.11.4
built with OpenSSL 1.0.2j 26 Sep 2016
TLS SNI support enabled
configure arguments: --prefix=/usr/share --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --modules-path=/usr/share/nginx/modules --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --user=nginx --group=nginx --with-ipv6 --with-file-aio --with-http_v2_module --with-http_ssl_module --with-http_realip_module --with-http_sub_module --with-http_dav_module --with-http_gzip_static_module --with-http_stub_status_module --with-openssl=/home/builder/buildbot/nginx-1.11.4-bcos7x64/build/nginx/work/openssl-1.0.2j --with-openssl-opt='enable-tlsext zlib no-idea no-mdc2 no-rc5 no-ssl2 no-shared -fpic'
--add-dynamic-module=/usr/share/passenger/ngx_http_passenger_module

Do you have it?


I do.

h_1482298584_8845495_6a1d76b9a5.png


h_1482298733_7376516_a3348892e7.png
 
Make sure that passenger module file exists:

# ll /usr/share/nginx/modules/ngx_http_passenger_module.so
-rwxr-xr-x 1 root root 741160 Oct 5 17:27 /usr/share/nginx/modules/ngx_http_passenger_module.so

and loaded with following config:

# cat /etc/nginx/modules.conf.d/phusion-passenger.conf
load_module nginx/modules/ngx_http_passenger_module.so;
 
Make sure that passenger module file exists:

# ll /usr/share/nginx/modules/ngx_http_passenger_module.so
-rwxr-xr-x 1 root root 741160 Oct 5 17:27 /usr/share/nginx/modules/ngx_http_passenger_module.so

and loaded with following config:

# cat /etc/nginx/modules.conf.d/phusion-passenger.conf
load_module nginx/modules/ngx_http_passenger_module.so;

It's okay I think I broke Plesk ;s

I clicked the "here" options, and now all my pages show the default Apache page, might have to do a backup and do a fresh install.

h_1482300467_2448259_a192bca84c.png
 
Hello,

Does plesk repair web helps with default apache page ?

Regarding passenger - please make sure that your /etc/nginx/nginx.conf contains the line include /etc/nginx/modules.conf.d/*.conf;

Thanks,
 
Back
Top