• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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