> ## Documentation Index
> Fetch the complete documentation index at: https://kb.hosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Disabling PHP connection timeouts on Turbo servers

> Disable PHP timeouts on Turbo servers with a simple .htaccess tweak - ideal for long-running scripts like backups or cron jobs.

This article describes how to disable PHP connection timeouts on Turbo servers.

## Problem

PHP scripts that run for a long time on Turbo accounts may time out or appear to "hang".

For example, when you run BackupBuddy on WordPress, the PHP process must often run for a long time. If it runs long enough, it may appear to hang and never finish.

## Resolution

To resolve this problem, you can disable PHP connection timeouts on Turbo accounts.

<Warning>
  **Important**

  You should **not** disable connection timeouts to "fix" PHP processes that run slowly because of poor programming practices. This only serves to mask the symptoms, instead of solve the underlying problem. Only use the following configurations for code that you do not control, such as for third-party plugins.
</Warning>

The following *.htaccess* snippet demonstrates how to disable connection timeouts for all requests:

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

The following *.htaccess* snippet demonstrates how to disable connection timeouts for specific files (in this case, *wp-cron.php*, *backupbuddy,php*, and *importbuddy.php* ):

```
<IfModule LiteSpeed>
    RewriteEngine On
    RewriteRule (wp-cron|backupbuddy|importbuddy)\.php - [E=noabort:1, E=noconntimeout:1]
</IfModule>
```

To re-enable connection timeouts, comment out the previous statements in the *.htaccess* file by placing a **#** character in front of each line (or just delete the lines entirely).

## More information

For more information about PHP connection timeouts on LiteSpeed server, please visit [https://www.litespeedtech.com/support/wiki/doku.php/litespeed\_wiki:php:run-without-timeouts](https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:php:run-without-timeouts).

## Related articles
