How to disable LiteSpeed connection timeouts
LiteSpeed is the web service we use on all our shared servers instead of the usual Apache and part of this service is a connection timeout that allows us to ensure users with potential scripting issues do not cause long running processes on our servers. This helps to ensure that users don’t end up with processes stacking up and hitting account limits for the number of processes. However in some cases you may need to disable this limit while fixing a coding issue or if you simply have a process on the website that exceeds the LiteSpeed timeout.
To disable this you would need to ensure you have a .htaccess file in your web space, ideally in the same folder as the website itself, in most cases this will be the public_html folder, then within this file you must add the following code:
RewriteRule .* - [E=noconntimeout:1]
RewriteRule .* - [E=noabort:1]
Once added you must allow 5 minutes for the changes to apply but at this point the LiteSpeed timeout limits will no longer be in effect and only PHP timeouts will be applied if set in the PHP selector.
Note: This will disable the LiteSpeed connection timeout over everything in public_html folder, for example any add-on domains with a document root inside the public_html folder will also experience no timeout limits from LiteSpeed.
We have a guide on using the cPanel File Manager to access and edit your .htaccess file.