• 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.

Resolved How to reinstall nginx?

hardbrasil

Regular Pleskian
hello fellas,

our manager tried to reinstall nginx and now its not loading anymore.

how can i reinstall it from ssh?

Centos7/64bits

Code:
[root@admin ~]# systemctl status nginx
● nginx.service - Startup script for nginx service
   Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2016-10-31 10:10:17 BRST; 5min ago
  Process: 29815 ExecStartPre=/usr/bin/test $NGINX_ENABLED = yes (code=exited, status=2)


trought Plesk panel

Code:
Unable to start service: Unable to manage service by nginxmng: ('start', 'nginx'). Error: [2016-10-31 10:10:18] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/nginx_control' '--start'] with exit code [1] Can not start proxy server:



thanks
 
Last edited:
Hi hardbrasil,

pls. don't make the mistake to mix the package "nginx", with the Plesk shipped version called "sw-nginx", when you use your package manager, even that Plesk calls it's component "nginx" as well. ;)


The fastest way to install and de-install Plesk components, is to use the "Plesk installer":

Show Plesk components for the current installed Plesk version:

plesk installer --select-product-id plesk --select-release-current --show-components --show-options
Install a Plesk component ( as listed from the above command! ) - Examples :

plesk installer --select-product-id plesk --select-release-current --install-component nginx

plesk installer --select-product-id plesk --select-release-current --install-component Apache
De-Install a Plesk component ( as listed from the above command! ) - Examples :

plesk installer --select-product-id plesk --select-release-current --install-component nginx

plesk installer --select-product-id plesk --select-release-current --install-component Apache


Pls. make sure to use the command

"/usr/local/psa/admin/sbin/nginxmng -e", to ENABLE the reverse proxy,

"/usr/local/psa/admin/sbin/nginxmng -d", to DISABLE the reverse proxy and

"/usr/local/psa/admin/sbin/nginxmng -s", to SHOW THE STATUS of the reverse proxy.​
 
Last edited by a moderator:
Back
Top