Answer the question
In order to leave comments, you need to log in
How to overcome 504 Gateway Time-out when making a long request on Open Server?
I downloaded the site from the combat hosting and deployed it on the local one. I start loading goods through api of other sites. This process is very long. And I eventually get a 504 Gateway Time-out error.
How to configure OpenServer to avoid this error?
I tried to set the following settings in php.ini:
max_execution_time = 0
memory_limit = -1
max_input_time = 0
And in httpd.conf (Apache and nginx settings file):
KeepAlive On
KeepAliveTimeout 9999
Timeout 9999999
It did not help me. What else can you try to change?
Answer the question
In order to leave comments, you need to log in
Run the import script via console, when running php via console, there should be no execution time limit.
I advise you not to change the php parameters and the web server (because it is fraught with consequences for the entire site), but to change the logic of interaction with these third-party APIs
In the NGINX configuration, you must specify the line
or
, depending on the configuration.
I wrote from memory, but google in this direction.
fastcgi_read_timeout 9999;
proxy_read_timeout 9999;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question