• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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