• 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!
  • 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.

Question Plesk 502 Bad Gateway

marksman1907

New Pleskian
I am adding new site in plesk, PHP settings, such as editing the process of doing all the sites I get:

502 Bad Gateway
nginx


How can I fix this?

‪CentOS Linux 7.4.1708 (Core)‬

Plesk Onyx
Versiyon 17.5.3 #40
 
I am adding new site in plesk, PHP settings, such as editing the process of doing all the sites I get:

502 Bad Gateway
nginx


How can I fix this?

‪CentOS Linux 7.4.1708 (Core)‬

Plesk Onyx
Versiyon 17.5.3 #40

Hello,
you just have to set a restart interval for Apache. Otherwise it will restart each time you edit php or web server settings.

More informations here : Optimizing Apache Web Server
 
I suggest to follow How to enable/disable graceful restart for Apache? to change the Apache restart to an Apache reload (graceful restart). This is an important change to reduce the number of 502 situations. If you leave it on restart it will still occur. It will not occur every time you make a change to the configuration, but once the restart interval expires, it will occur. This is not the case when you set a an interval and choose graceful restarts instead of restarts. An interval in that case should be at least 360 seconds, better more.
 
Back
Top