ERR_CONNECTION_REFUSED - WordPress - Ubuntu 16.04 - LetsEncrypt activated - Apache

Hello everybody !

First : sorry for my english, I’m french…

Ok so, I have a big problem… I worked, with Google Chrome, on my website with WordPress, I made some changes on my site then, I just change actually page viewed : ERR_CONNECTION_REFUSED… So, I check on others browsers, with differents terminal (PC / MAC / mobile) with differents IPs but it’s the same…

Then, I check UFW status : all is good and all is activated) so I try to disable UFW : same thing… Then, I remove all my plugins on wordpress : same thing… Then, I restart my apache service : same thing…

Then, I test “apache2ctl configtest” and all is good.

But when I check this file, chmod is 777 and is existing and is fully plain with a ssh key…

Can you help me please ?

Thanks for all ! Hugo

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.


In such cases what I could suggest is:

  • Check if your apache is actually listening on port 80 and 443, you can do that with:
netstat -plant
  • Check your Apache error log, maybe there is a problem with the SSL certificate which is preventing Apache from starting:
tail -100 /var/log/apache2/error.log
  • Try to remove the Vhost created by certbot, restart apache and then try to reissue Let’s Encrypt again.

Regards, Bobby