Question

WordPress WP-Cron cURL connection refused

I created a droplet from the WordPress One Click install option, set everything up, and tried to schedule a post. The schedule failed and after some digging I found the error message

cURL error 7: Failed to connect to <domain>.com port 443: Connection refused

I SSH’ed into the droplet and tried cURL and wget but I get the same result. I have no idea what’s wrong or how to fix it. Can someone please point me in the right direction?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

@christophdemaskey

Since you’re on Ubuntu, run:

ufw status

That’ll tell you whether or not ufw is enabled and if it is, which ports are open on the server. If it’s not enabled, then the issue would be that you either don’t have SSL enabled (for your domain), thus it’s not returning a successful return code, or something else is preventing the connection.