how to fix connection timeout error in litespeed

LiteSpeed is the web server we use on all our hosting servers instead of Apache. We set a LiteSpeed connection timeout 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 webspace, 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:

<IfModule Litespeed>
RewriteEngine On
RewriteRule .* - [E=noconntimeout:1]
RewriteRule .* - [E=noabort:1]
</IfModule>

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 the 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.

By anup

Leave a Reply

Your email address will not be published. Required fields are marked *