Change hard_timeout value
We're trying to figure out why uploads are failing in a site we're working on. Looking at the phpinfo for it there is a directive called hard_timeout which is set to 2. We suspect this is the culprit, but can't find any documentation on this directive. Nor can we find where to change that value. It's not in /opt/cpanel/ea-php72/root/etc/php.ini.
Help?
-
PHP timeout will try to remove the application "smoothly". In the event that for some reason we cannot kill the process, the hard_timeout directive will kill it by force. Could you give us a little more information? any log? 0 -
The error log for this would be necessary in order to indicate why the upload is failing, there should be output in the apache error log /etc/apache2/logs/error_log0 -
We"ve set the other timeouts much greater than hard_timeout but the process always times out around 2 seconds leading us to believe hard_timeout is what"s killing the process. There are no logs we could find, it just stops. We tried setting hard_timeout in the cpanel multiphp editor for the site, it had no effect. We tried setting it in the whm multiphp editor for that whole version of php and it had no effect. phpinfo says hard_timeout is 2. 0 -
grep hard_timeout /etc/apache2/logs/error_log returned nothing. 0 -
We're digging through the error_log after grepping for the subdomain that we're working in. But there's a lot. so not easy to isolate what might be relevant. 0 -
After much sleuthing we determined it was unrelated to hard_timeout. It was a modsecurity issue. It is strange that we cannot set hard_timeout but it does not seem to be causing any issues at present. 0
Please sign in to leave a comment.
Comments
6 comments