Cobra Forum

Plesk Panel => Webserver => Topic started by: mahesh on Dec 12, 2024, 06:31 AM

Title: Nginx service enabled in Plesk is unable to start:
Post by: mahesh on Dec 12, 2024, 06:31 AM
Question
Nginx service enabled in Plesk is unable to start: Not starting nginx as it is disabled in Plesk.
Symptoms
#systemctl start nginx
Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

Not starting nginx as it is disabled in Plesk. Run 'plesk sbin nginxmng -e' to enable nginx in Plesk.
#plesk sbin nginxmng -s
Enabled

#nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

Cause
A misconfiguration in some Nginx configuration files is preventing it from starting. In it unclear how exactly the misconfiguration has occurred, however the configuration needs to be reset by disabling and enabling the connection between Plesk and Nginx in order to resolve the issue.

Resolution
1.Log in to the server via SSH.

2.Disable and enable nginx reverse proxy server running the following commands one after another:

#plesk sbin nginxmng --disable
#plesk sbin nginxmng --enable