• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Nginx Wont Start Automatically after Reboot

HunterY

New Pleskian
So Everything was going great! Until I needed to reboot, and then after that only Plesk panel worked not my IP or any domains setup with it.

BUT when I restart Nginx it all starts working again! (Had to /usr/local/psa/admin/bin/httpdmng --reconfigure-all to get the domains to go to the right directory though)

But now everytime I reboot the server Nginx has to be restarted

Is this Normal?

I`m running Plesk 12 fresh clean install yesterday

CentOS 7 64Bit

Thank you!
 
Maybe this helps?
/usr/local/psa/admin/bin/nginxmng --enable
 
/usr/local/psa/admin/bin/nginxmng --enable is not helping....

After reboot I must manually restart nginx to bring domain on-line.

Any new suggestions?
 
Last edited:
For testing purposes, obvious...

I wrote in another thread that sometimes nginx stop functioning and after reboot I had to restart it manually to bring domain online...

To correct thread title:
NGINX start on reboot but not functional until restart service.
 
Last edited:
got the same problem, nginx wasn´t enabled in systemd .

type "chkconfig nginx" ... if the command replies "disabled" type "chkconfig nginx enable"

this worked for us
 
Yes, this was the problem:

# systemctl is-enabled nginx.service
disabled

# systemctl enable nginx.service
ln -s '/usr/lib/systemd/system/nginx.service' '/etc/systemd/system/multi-user.target.wants/nginx.service'
# systemctl is-enabled nginx.service
enabled

Thank You RedEnzian !!!
 
Had this problem on a new Centos 7, Plesk 12 install.
The problem was nginx was attempting to bind to port 443 before the IP was initialized.
To fix edit the /etx/sysctl.conf file and add
net.ipv4.ip_nonlocal_bind = 1
Then reload your sysctl.conf file
sysctl -p /etc/sysctl.conf
 
Back
Top