Run PHP without Timeouts

35 views
Skip to first unread message

Steve Skinner

unread,
May 31, 2017, 4:45:12 PM5/31/17
to OpenLiteSpeed Development
Hi All,

I have tried this take from litespeed

RewriteRule (wp-cron|backupbuddy|importbuddy)\.php - [E=noabort:1, E=noconntimeout:1]

and

SetEnvIf Request_URI "(wp-cron|backupbuddy|importbuddy)\.php" noabort noconntimeout

but has no effect on open litespeed

I have cron jobs and file uploaers which can take 20 mins to finish, how can i add noabort noconntimeout in open litespeed
or can i set them using php in the script i dont want to time out?

Thanks
Steve

Taffy

unread,
Jun 8, 2017, 12:52:53 AM6/8/17
to OpenLiteSpeed Development
Hi Steve,

The CRON job should have no timeout, PHP CLI usually has no time out set as default.

If your script is web facing, you would need to change your PHP.ini file to change the script timeout.  Otherwise you would need some kind of keep-alive loop, such as the ones AJAX/Flash uploaders use while the upload is progressing.
Reply all
Reply to author
Forward
0 new messages