ERR_CONNECTION_REFUSED - WordPress - Ubuntu 16.04 - LetsEncrypt activated - Apache

Posted August 12, 2018 2.9k views
ApacheWordPressCMSLet's EncryptUbuntu 16.04

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 : ERRCONNECTIONREFUSED....
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 !

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.

Submit an Answer
1 answer


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.