Getting Started

Please find below our list of Getting Started guides to help with your hosting account.

How to disable LiteSpeed connection timeouts

This article was posted in: Getting Started

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:

<IfModule Litespeed>
RewriteEngine On
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 addon domains with a document root inside the public_html folder will also experience no timeout limits from LiteSpeed.