• 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

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