Some WordPress plugins or operations may need to run very long PHP proceses, but they may be killed by LiteSpeed Web Server with error 500 after 120 seconds. With that in mind, we have additional environment variables that will resolve that issue.

You can use the noconntimeout variable in the htaccess file. Exlude WP Cron with this rule:

<IfModule Litespeed> 
RewriteEngine On
RewriteRule (wp-cron)\.php - [E=noconntimeout:1]
</IfModule>

You can use the SetEnv/SetEnvIf variable too, but we recommend using it only in a vhost file.

<IfModule Litespeed> 
SetEnv Request_URI "(wp-cron)\.php" noabort noconntimeout
</IfModule>

For additional examples and information on how to configurate the server, you can see this wiki.

Both of these variables will allow you to run php processes with no limits for the web pages affected by this .htaccess file.

  • Admin
  • Last modified: 2018/05/25 18:12
  • by Lisa Clarke