ReelTackle

Registered
Jan 3, 2016
3
0
1
Brisbane
cPanel Access Level
Root Administrator
Hi Guys
My website has a image/thumbnail generator that uses GDLib and PHP7.3
Every time I run the generator I get this Gateway Timeout issue at exactly 5 minutes running.

Gateway Timeout

The gateway did not receive a timely response from the upstream server or application.

Additionally, a 504 Gateway Timeout error was encountered while trying to use an ErrorDocument to handle the request.

This is a dedicated server running Centos 7.7
Can anyone please suggest how and where to fix this as I have tried every thing that I know and it still times out for some reason.
 

cPJeremy

Technical Analyst
Staff member
Feb 13, 2019
57
3
83
Houston TX
cPanel Access Level
Root Administrator
Hello, ReelTackle!

The suggestion by Kadrin may be beneficial and worth trying if you are able to do so. However, I am not certain how your thumbnail generator is working.

What I believe is that your generator it hitting the Apache timeout limit. The Apache timeout limit by default is 300 seconds. If your timeout is taking place at 5 minutes, this is most likely why.

What you should be able to do is increase the "Timeout" by going to WHM's Home »Service Configuration »Apache Configuration »Global Configuration and then saving your changes.

Please let us know if this helps!