• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • 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.

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