Answer the question
In order to leave comments, you need to log in
How to set script execution time when migrating from PHP 5.6 to PHP 7.2?
Some processes on the server require a long time (the volumes are huge in places to process). And when switching from PHP 5.6 to PHP 7.2, this thing pops up
Gateway Timeout
The gateway did not receive a timely response from the upstream server or application.
Apache/2.4.10 (Debian) Server at mydomain.ru Port 443
ini_set('max_execution_time', '3600');
Answer the question
In order to leave comments, you need to log in
Gateway Timeout is not necessarily php related. I would even say "most likely php has nothing to do with it at all". This is if not nginx, then apache is visible. And he also has a config and there is also a timeout.
httpd.apache.org/docs/2.2/mod/core.html#timeout
Write directly in the ini file.
Tweak Apache settings, c. Htaccess
And inside the script, try
set_time_limit(0);
.htaccess file
<IfModule mod_php5.c>
php_value max_execution_time 300
</IfModule>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question