LiteSpeed troubleshooting: Please contact administrator of this web site to increase 'Connection Timeout'.

Connection Timeout Connection Timeout is one of the most common errors on LiteSpeed Web Servers. It usually happens when you have very long processes running that are eventually killed by the server and throw an error: This request took too long to process and the server timed out. If it shouldn't be timing out, please contact this site administrator to increase the "Connection Timeout"

When using LiteSpeed web server, you often encounter connection timeout issues

Here's how to solve the connection timeout problem!

Request Timeout

This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase ''.

LiteSpeed troubleshooting: Please contact administrator of this web site to increase 'Connection Timeout'.

Connection Timeout Connection timeout is One of the most common errors on web servers is the request timeout error. This usually happens when you have very long processes running that are eventually killed by the server and throw an error: This request took too long to process and the server timed out. If it shouldn't be timing out, contact this site administrator to increase the "connection timeout"

What is a request timeout error?

Before solving the LiteSpeed Web connection timeout error, we need to understand what causes the connection timeout.
The request timeout error is an error message generated by the LiteSpeed web server (a faster alternative to Apache) in response to running very long scripts. The server cancels these long-running scripts (even those that use set_time_limit()) and terminates all associated processes with an error.

To put it simply, you run an upload script, the server defaults to a 60-second timeout, and you upload for 80 seconds. When the 60-second timeout is reached, the server automatically disconnects, causing the upload script to fail. This is a common error in the early stages of using LiteSpeed Web Server.

Now that you know what the error is, here are 2 simple ways to fix it:

  • Adding time limits
  • Rewrite .htaccess rules to disable connection timeout

Method 1: Add time limit

If your server times out prematurely, the most logical way to prevent this from happening is to increase the time limit. You can do this by increasing the max_execution_time in the php.ini file. By default, the time limit is set to 30 seconds. Simply edit the php.ini file and add the following code:

max_execution_time = 6000;

In CyberPanel, you can modify the max_execution_time parameter in PHP > Edit PHP Configuration.

LiteSpeed troubleshooting: Please contact administrator of this web site to increase 'Connection Timeout'.

If you still get an error after editing your PHP configuration file, you can specify new limits in your wp-config.php file.
To wp-config.php, add the following code:

set_time_limit(0);

Setting the time limit to 0 in the wordpress config file will remove the time limit completely.

Method 2: Disable connection timeout via .htaccess

If setting the time limit does not fix the request timeout error, it means that your server has defined special rules that override your custom settings. Therefore, we need to disable these rules. Your .htaccess file is the key here.

Simply edit your .htaccess file and paste the following code:

RewriteEngine On RewriteRule .* - [E=noabort:1] RewriteRule .* - [E=noconntimeout:1]

 

score

Leave a Reply

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