This article describes how to disable PHP connection timeouts on Turbo Boost and Turbo Max Web Hosting accounts.
PHP scripts that run for a long time on Turbo Boost and Turbo Max Web Hosting 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.
To resolve this problem, you can disable PHP connection timeouts on Turbo Boost and Turbo Max Web Hosting accounts.
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).
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.
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.