cURL error for cron

I have this error which causes me a lot of trouble with all of my crons for some of my website :

cURL error 28: connect() timed out!

The websites are stored on a shared servers i guess, how can I fix it ? Can’t find something to help me on this point anywhere…

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

This error is most often related to the server configuration!

Contact your hosting company and ask the hosting support to check the following points:

  • The server is running a recent version of PHP and the cURL library.
  • Increase PHP Memory Limit settings.
  • Ask your web host if there is some limitation with wp-cron, or if loopback is disabled.
  • Ask your WebHost if there a firewall or security module (e.g. mod_security ) that could block outgoing cURL requests.
  • Your hosting company might need to switch DNS configuration to something like OpenDNS.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x