Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
litespeed_wiki:cache:lscwp:troubleshooting:exclude_wp-cron_from_php_timeout_limit [2018/05/25 15:04]
Tihomir created
litespeed_wiki:cache:lscwp:troubleshooting:exclude_wp-cron_from_php_timeout_limit [2020/11/14 15:42] (current)
Lisa Clarke Redirect to new Documentation Site
Line 1: Line 1:
-===== Run Wp-Cron PHP processes with no limits ===== +~~REDIRECT>https://docs.litespeedtech.com/lscache/lscwp/​troubleshoot/​~~
- +
- +
-Some Wordpress plugins or operations may need to run very long php procceses but they may be killed by Litespeed Web Server with error 500 after 120 seconds. In that in mind we have additionally environment variable that will resolve that issue. +
- +
- +
-==== noconntimeout ==== +
- +
-You can use in the htaccess file "​noconntimeout"​ variable. Exlude wp-cron with this rule: +
- +
-<code> +
-<​IfModule Litespeed>​  +
-RewriteEngine On +
-RewriteRule (wp-cron)\.php - [E=noconntimeout:1] +
-</IfModule>​ +
-</code> +
-  +
-==== SetEnv/​SetEnvIf ==== +
- +
-You can use "​SetEnv/​SetEnvIf"​ variable too but we recommend to use it only in vhost file. +
- +
-<​code>​ +
-<​IfModule Litespeed>​  +
-SetEnv Request_URI "​(wp-cron)\.php" noabort noconntimeout +
-</IfModule>​ +
-</code> +
- +
-For additionally examples and information how to configurate the server side you can see [[litespeed_wiki:​php:​run-without-timeouts|this wiki]]  +
- +
-Both of this variable will allow running php processes with no limits for that webpage where is the htaccess file. +
  • Admin
  • Last modified: 2018/05/25 15:04
  • by Tihomir