Troubleshoot PHP errors in your application deployments.
Detected 1047468200 Bytes of RAM
PHP memory_limit is 128M Bytes
request_terminate_timeout
directive for FastCGI Process Manager (FPM) determines the maximum time a PHP script can run before the web server forcefully terminates it, regardless of whether the script has completed or not.
This is useful for preventing PHP scripts from running indefinitely, which can happen due to coding errors, infinite loops, or excessive processing times. By setting an appropriate request_terminate_timeout
, you can prevent PHP processes from consuming excessive server resources and potentially affecting the overall performance and stability of the server.
To change the value of request_terminate_timeout:
request_terminate_timeout = 120
heroku-php-apache2 -F fpm_custom.conf
max_execution_time
defines the maximum amount of time, in seconds, that a PHP script is allowed to run before it is terminated by the server.
To increase your application’s max execution time, create a .user.ini file in the application’s root directory and add the max execution time setting to the file. For example, if you want to increase the max execution time to 60 seconds, add the following:
max_execution_time
you should also update the request_terminate_timeout
value to ensure the script is not terminated before the execution time.