• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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