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

Issue 504 nginx on a fat request.

emmanuelautin

New Pleskian
Hi,

I'm facing a 504 nginx error in a prestashop website hosted in plesk onyx.
Im' with PHP 5.6 FastCgi

The errors in the apache / nginx logs :

  1. upstream timed out (110 : Connection timed out) white reading response header from upstream
  2. mod_fcgid: read data timeout in 120 seconds
  3. End of script output before headers :
I improve the max_execution_time to 120 in php settings.
I add additional directive to apache :

<ifModule mod_fcgid.c>
FcgidIOTtimeout 120
</ifModule>

What i read i shoud do

Add nginx directive :

proxy_connect_timeout : 180s
proxy_send_timeout : 180s
proxy_read_timeout: 180s
fastcgi_send_timeout: 180s
fastcgi_read_timeout: 180s

But i think it will override the nginx native conf and then apache can't restart at all, (i have this issue on othe plesk production serveur)

The bugs appears only in a large request / in a prestashop module.

Any advice is appreciated,

Thanks alot.
 
Back
Top