Operating System & Version
CENTOS 7.8 hyper-v [id16726]
cPanel & WHM Version
v88.0.13
Feb 24, 2019
11
2
3
London
cPanel Access Level
Root Administrator
Hi,

I've recently moved a WordPress website to a new cPanel server and couldn't migrate the previous setup, so I had to set up the new server from scratch. Since making the website live on the new server I've been having problems with this error:

Error: cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received (http_request_failed)
In wp-admin > Tools > Site Health I am advised of the following:

The REST API encountered an error

The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages.

The REST API request failed due to an error.
Error: cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received (http_request_failed)
and

Your site could not complete a lookup request

Loopback requests are used to run scheduled events, and are also used by the built-in editors for themes and plugins to verify code stability.

The loopback request to your site failed, this means features relying on them are not currently working as expected.
Error: cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received (http_request_failed)
The PHP version is 7.4.
WordPress and all plugins are fully up to date.
The issue didn't arise on exactly the same website on the previous server so I'm guessing there is something missing/wrong on my new server that is causing this.

This is an unmanaged server and, while I'm fairly competent, I'm struggling to resolve this one! Any advice would be gratefully received!
 

andrew.n

Well-Known Member
Jun 9, 2020
611
175
43
EU
cPanel Access Level
Root Administrator
I would say wrong resolvers. Can you check /etc/resolv.conf file? Please set it to generic resolvers like:

nameserver 8.8.8.8
nameserver 8.8.4.4

then give it a try.
 

andrew.n

Well-Known Member
Jun 9, 2020
611
175
43
EU
cPanel Access Level
Root Administrator
hm firewall maybe? Can you try to turn it off and check?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston
You may also want to check the firewall software on the server itself (unless that's what you're referring to)

Some additional suggestions: