E
E
eugene1592020-03-09 15:28:00
PHP
eugene159, 2020-03-09 15:28:00

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

3 answer(s)
N
Nadim Zakirov, 2020-03-09
@eugene159

Run the import script via console, when running php via console, there should be no execution time limit.

I
Ivan Shumov, 2020-03-09
@inoise

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

P
Page-Audit.ru, 2020-03-09
@PageAuditRU

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 question

Ask a Question

731 491 924 answers to any question