• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

enabling nginx proxy failed

Peter_R

Basic Pleskian
hello

here is my setup
Centos6.6 x86_64 Minimal install + Plesk12 installation completed without problem.

however when i logged in to Plesk Panel i get this message.

ERROR: PleskException
Up Level
Unable to configure control panel: nginxmng failed: [2014-12-02 07:32:44] ERR [util_exec] proc_close() failed
enabling nginx proxy failed:
255 Service /etc/init.d/httpd failed to start
Service /etc/init.d/httpd failed to start

Nginx proxy changes had been reverted.

everything seems to work but i would like to have it enabled for performance reasons
when i check it

# /etc/init.d/nginx status
nginx is stopped

then i try to start it manualy
/etc/init.d/nginx start
Not starting nginx as it is disabled in config

then i try to force it
/usr/local/psa/admin/bin/nginxmng --enable

[2014-12-02 08:19:48] ERR [util_exec] proc_close() failed
enabling nginx proxy failed:
255 Service /etc/init.d/httpd failed to start
Service /etc/init.d/httpd failed to start
Nginx proxy changes had been reverted.


Please Advise how to fix that issue ...


Thanks
 
Hi Peter_R,

one reason might be, that FastCGI is not correctly configured/installed. You could always try to use the bootstrapper repair for such issues and could as well make sure, that all Plesk updates/patches are installed:

/usr/local/psa/bootstrapper/pp12.0.18-bootstrapper/bootstrapper.sh repair

/usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --reinstall-patch --install-component base


Your issue might as well be caused by SELinux and/or missing policies, so it might be a good idea to check this.
You can mostly find issues by investigating error - logs on your system, which mostly point directly to the specific error.

 
thank you i tried the suggested commands

problem still not resolved

however you were right about SELinux this seems to be a problem. funny thing is that
Plesk 12 Installation Guide does not say anything about it but they do mention about AppArmor which seems to be in Ubuntu only... i assume it does not show as enabled in centos.

So i disabled SELinux for the duration of a New Installation and will post the update here if that resolved it..
but i have feelings that it will...

thanks
 
update:
yes SELInux was at fault , and preventing to start up the nginx service
when i did fresh install and used command before plesk install
setenforce 0
to temporaily disable SELinux abd that worked
that resolved the problem .

all services are running..
i wish there was some installation notice about in Plesk 12 Installation.
 
Another Update:
to confirm you have to Completely Disable SELInux on linux.
If not disabled it will prevent from running certain Plesk Services and do proper update
so make sure its disabled.
Now my problem is fixed. I Hope that helps others
 
Back
Top