Problem with PHP timeout
I've updated php.ini max execution time to 300. I've verified that the max execution time is set in phpinfo. However, when I'm attempting to transfer a relatively large (100mb) file to S3, I can see the cron job start but then the transfer never occurs. I'm getting the following error message in php5-fpm.log
Apr 22 19:33:24.048456 [WARNING] [pool www] child 23746, script '/home/derek/public_html/foo/public//wp-cron.php' execution timed out (30.001523 sec), terminating
Apparently something is causing php to timeout at 30sec. I'm running a LEMP stack if that matters. Any ideas on what might be causing this this timeout? Thanks.
4 Replies
Check /etc/php5/cli/php.ini
By default on my Debian system it's set to 30 seconds there.
The process should be running through php-fpm, but I went ahead and updated max execution time under cli and cgi's php.ini files and restarted php just to be safe. Still got the same error though.