Request Timeout on my site, what "increase Connection Timeout" means

The Request Timeout message is shown by the LiteSpeed web server when a page takes so long to respond that the server closes the connection. The delay is almost always caused by something inside the site, usually a plugin, the theme, a corrupted database, a slow query or an external API call that does not respond. The solution is to find what is slowing things down, not to raise the time limits in the PHP settings.

What exactly the LiteSpeed Request Timeout message says

The full text is in English:

> 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 'Connection Timeout'.

Connection Timeout is a LiteSpeed setting for the whole server. It sets how long the server waits for a response from the page. If the page sends nothing within that time, the visitor sees the message. Raising it does not fix a slow page. The page will simply wait longer before it fails, and the visitor is not going to wait that long.

You usually see this kind of WordPress timeout in two situations:

  • right after updates to plugins, the theme or WordPress,
  • suddenly, without you changing anything, often only in the dashboard (wp-admin) or on one page, for example the shop checkout.

Why raising max_execution_time does not help

Many people raise max_execution_time and max_input_time and the message stays. There are two reasons.

  1. max_execution_time only counts the time PHP spends executing code. It does not count the time spent waiting for a response from the database or an external service. If a plugin is waiting for an external server that does not respond, the PHP limit is never reached and LiteSpeed cuts the connection first.
  2. At Konet the MultiPHP INI Editor and the php.ini and .user.ini files have no effect. PHP settings are changed only from PHP Selector, in cPanel > Software > Select PHP Version > Options, or with .htaccess. See why you don't use the MultiPHP INI Editor.

If you have already changed values in the MultiPHP INI Editor, you don't need to undo them, they simply don't apply.

Before you start

  • Access to cPanel.
  • A recent copy. JetBackup 5 keeps copies of your account, but before changes to the database also export it from cPanel > Databases > phpMyAdmin > Export.
  • Note which page shows the message and what changed on the site shortly before.

If the problem started right after an update, the quickest route is often a restore to a date before it. See how to restore WordPress after an update.

Step 1, deactivate plugins one at a time

Plugins are the most common cause.

  1. Log in to wp-admin and go to Plugins.
  2. Deactivate one plugin.
  3. Test the page that showed the message again.
  4. If it continues, activate it again and move on to the next one.
  5. Continue until only the plugins the theme needs remain active.

Start with those updated recently and those that connect to external services, such as payments, couriers, ERP, newsletters and statistics.

If wp-admin won't even open, deactivate the plugins from cPanel > Files > File Manager. Go to public_html/wp-content/plugins and rename a plugin's folder, for example from plugin-name to plugin-name-off. WordPress deactivates it immediately. To bring it back, give it its original name again. See the File Manager guide.

In practice, even LiteSpeed Cache can block the dashboard when it conflicts with another plugin. Don't leave it out of the check.

Step 2, check the theme

If the page still hangs without the extra plugins, look at the theme. A recent theme upgrade, or a theme that was not updated along with WordPress, can cause the delay. As a test, briefly activate a default WordPress theme from Appearance > Themes. If the message goes away, the problem is in the theme and it needs an update or a fix from its developer.

Step 3, check and repair the database

A corrupted or very heavy database makes every page slow. Check it before any new update.

  1. Open cPanel > Databases > phpMyAdmin.
  2. Select the site's database on the left.
  3. Tick all tables with Check all.
  4. From the With selected list choose Check table.
  5. If a table does not come back OK, tick it and choose Repair table.

You will find more on these functions in the phpMyAdmin guide. Repair is not supported by every table type. If a table still shows an error, open a ticket.

Step 4, run updates one at a time

Once the site works again, update plugins, the theme and WordPress one at a time. Test the page after each update. That way, if the problem returns, you know immediately which update brought it. Bulk updates of many plugins at once make it almost impossible to pin down.

The problem is caused by a call to an external service

Many plugins talk to external servers on every page load, for example to verify a licence, fetch shipping rates or look up the visitor's IP address. If that server is slow or doesn't respond, your page waits along with it and ends up with a Request Timeout.

This is not visible at a glance. CloudLinux's X-Ray App in cPanel detects it, and it is available on all Konet plans. It records what each request does and how long each step takes, including every external API call and every slow database query. See how to use the X-Ray App. If X-Ray shows the time is lost in a plugin's call, the fix has to come from the plugin's developer. Send them the finding, and until then keep the plugin deactivated if you can.

When to open a ticket

If the message continues with the extra plugins deactivated and a default theme, open a ticket from the Client Area. Include:

  • the address of the page that shows the message,
  • the time you last saw it,
  • what you have already tried from the steps above.

If you have already run the X-Ray App, add what it showed. Don't write passwords in the ticket. Konet checks the server and the logs. Fixing plugins, themes and code is not included in hosting support. See what hosting support covers.

Frequently Asked Questions

I changed max_execution_time in the MultiPHP INI Editor but nothing changed, why?
At Konet the MultiPHP INI Editor has no effect. Settings are changed from Select PHP Version > Options. Even there, though, raising it rarely solves the Request Timeout, because the delay is usually waiting for the database or an external service.

Can you increase the timeout for my site?
Konet can consider a request to increase the time, case by case, if you open a ticket and explain which task needs it. It is not a solution for slow code, though. If a page is slow because of a plugin, theme or the database, it will be just as slow and will simply wait longer before it fails. First find what is slowing it down with the steps above.

Is it the same as a 504 Gateway Timeout or a 408 Request Timeout?
Not exactly. A 504 Gateway Timeout is shown by an intermediary, for example a proxy, when it did not get a response in time from the server behind it. If you see a 504 on a slow page, the cause is usually the same, a page that is slow to respond, and the same steps apply. A 408 Request Timeout means the server was waiting for the browser's request and did not receive all of it in time, which is usually down to the visitor's connection and not the site.

The message appears only in the dashboard, not on the site. What does that mean?
More plugins load in wp-admin and more external calls are made, for example update and licence checks. Start the check with plugins that have their own dashboard panel or connect to an external service.

It appears when I import many products or run a large export. What do I do?
A large import or other big task run from the browser can exceed the waiting time. Split the import into smaller files or use the plugin's batch feature, if it has one. For recurring tasks, a cron job is a more reliable solution.

The site started showing it without me changing anything. Is the server to blame?
Rarely. Usually something changed that you don't see, for example an automatic plugin update or an external service that started to slow down. If your other sites are slow at the same time, though, open a ticket with the time.

I purge the LiteSpeed Cache and nothing changes. Why?
The cache helps with the pages visitors see. The dashboard, the cart and the checkout are not served from cache, so the delay always shows there.

Was this article helpful?

Related service Konet Web Hosting cPanel, LiteSpeed and automatic backups: 24 every 2 hours for 48 hours, then 6 daily, 4 weekly and 3 monthly.