I work on a Laravel project hosted in a Docker container with Apache. I have a script which call an API, it can take more than 3 minutes to respond, but I get this timeout error every time after 3 minutes:
504 gateway time-out
I tried to increase Apache Timeout
to 600 (default 300) in default.conf
file, and php timeout like max_execution_time
and max_input_time
each to 600.
Anyone would know where could this 3 minutes timeout come from ?
Thanks
PHP + Laravel is sometimes a bit tricky.
I don't know if this is your case, but if your file is very big, at some point PHP might be running out of memory, so if you still have the problem, also check PHP's memory limits.
I hope that helps!