Let me ask you a question. The PHP timeout setting is invalid.

configuration:
php.ini: max_execution_time = 30
php-fpm.conf: request_terminate_timeout = 100
nginx.conf: keepalive_timeout 60

script:
echo "start:". Date ("Y-m-d time ()). PHP_EOL;
sleep,
echo "end:". Date (time ());
exit;

result:
did not throw an error, but returned the result:
start:2019-02-25 15:56:26 end:2019-02-25 15:58:26

Why is there no timeout error report?

Jul.10,2022

check whether to restart fpm after modifying the configuration
you can use ini_get ('max_execution_time') in php to print the actual running timeout configuration


first of all, make sure that you set the timeout file correctly, and then comment out the timeout you set, and run individually to see if something went wrong.

Menu