Scheduled Backups Not Work on LiteSpeed Webserver. Fix WP CRON Issues

LiteSpeed ​​seems to have issues with all scheduled WordPress tasks that take more than a short time – including all backup plugins.
The LiteSpeed server terminates requests that exceed a certain time, e.g., 30 seconds. You can add the following rules to the .htaccess file to prevent Litespeed timeouts:

RewriteEngine On
RewriteRule .*-[E=noabort:1, E=noconntimeout:1]

After doing that, check if the scheduled backups work.

If the above does not help, use WordPress’s alternative scheduling system. Add the line below to your wp-config.php file:

define('ALTERNATE_WP_CRON', true);

If that doesn’t fix it, you’ll need the help of your web hosting company to figure out why WordPress’ scheduler isn’t working on setup or is terminating prematurely. Otherwise, you will need another web hosting company. This issue is general and affects all backup plugins on WordPress that run through the scheduler (which all are as far as we know).

Updated on March 26, 2022