• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

Errors after Onyx update

Takis

New Pleskian
Hi guys, i just update my plesk to onyx and i get these errors :

Error: Can not reconfigure web server configurations: Unable to execute httpdmng: [2017-07-31 22:35:23] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/nginx-config' '-t'] with exit code [1]
[2017-07-31 22:35:40] ERR [util_exec] proc_close() failed ['/opt/psa/admin/bin/nginx-config' '-t'] with exit code [1]
[2017-07-31 22:35:53] ERR [panel] Apache config (15015333140.64610000) generation failed: Template_Exception: nginx: [emerg] unknown directive "passenger_root" in /etc/nginx/conf.d/phusion-passenger.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed

file: /opt/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
nginx: [emerg] unknown directive "passenger_root" in /etc/nginx/conf.d/phusion-passenger.conf:1
nginx: configuration file /etc/nginx/nginx.conf test failed

And

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. Search in KB
I have no idea what to do. Any help appreciated.

Thanks
 
Hi, UFHH01

thanks for reply, i follow the suggestions

1) Add the following directive into /etc/nginx/nginx.conf

include /etc/nginx/modules.conf.d/*.conf;

2) Restart nginx:


service nginx restart

Result :

[info] Not starting NGINX as it is disabled in config.
 
I did what you say (i thing) i am not expert.. :) please check and tell me where i am wrong.

f082f157-3852-420d-b252-9c0235754ea4

Imgur: The most awesome images on the Internet

thanks you.
 
Hi Takis,

your "root" password should be the same, as for your "admin" password. OR ( if this differs! ), you should have an eMail from your server hosting provider with the credentials. :)

Pls. don't forget to check your "nginx.conf" ( /etc/nginx/ ), if you experience further issues/errors/problems.

To check your status for "nginxmng", you might use the command:
Code:
/usr/local/psa/admin/bin/nginxmng -s
 
I have my root pass, and i am logged in as root via ssh. You did not see the image?

08.01.2017-13.24.png


08.01.2017-13.25.png


Thank you for you patience as i said i am not familiar with this process.
 
Last edited:
Now nginx is running i think, the error message is :

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

I see another post of you that you ask these details another user with the same problem.

More details.


System : Debian 7

the output of "nginx -V"

nginx version: nginx/1.11.10
built with OpenSSL 1.0.1t 3 May 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 --add-dynamic-module=/usr/share/passenger/ngx_http_passenger_module
root@vmi33622:~#

\
 
Hi Takis,

as you now fixed the non-working nginx, pls. rebuild the webserver configuration files with the command:
Code:
plesk repair web -y -v
 
Back
Top