unable to connect to my wordpress admin panel on ubuntu 16.04

December 6, 2017 1.5k views
One-Click Install Apps WordPress Ubuntu 16.04

Hi,
I followed the Digital Ocean tutorial on how to install WordPress on Ubuntu:
https://www.digitalocean.com/community/tutorials/how-to-use-the-wordpress-one-click-install-on-digitalocean

I managed to set up a WordPress successfully, but then I accidentally closed the tab where I was working and from now on I cannot access to the WP admin panel.

I can successfully visualise my new blog by typing my server's IP, but I cannot actually log in to my WordPress admin panel at http://DROPLETIPADDRESS/wp-admin (DROPLETIPADDRESS = IP address of course), I get an error:
"Unable to connect.
Firefox can’t establish a connection to the server at xxx.xx.xx.xx.

  • The site could be temporarily unavailable or too busy. Try again in a few moments.
  • If you are unable to load any pages, check your computer’s network connection.
  • If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web."

what can I do now?

4 Answers

Either you are connecting to the wrong address or your webserver is not running. Check whether it does with netstat -ltp|grep apache

  • Hi Emstee,

    thanks for your answer.

    I performed the command and I got this:

    root@wordpress-1gb-sgp1-01:~# netstat -ltp|grep apache
    tcp6       0      0 [::]:http               [::]:*                  LISTEN      1738/apache2    
    

    What does it mean?

It means that your webserver is listening on port 80 correctly.

I had this issue I think 1click apps add a protection layer and if you enter the wrong password it blocks the website some how. I have to investigate this further. The website comes back after a fixed amount of time.

I resolved this issue by going into terminal and typing ufw status to make sure the right ports were open and they were.

After confirming that the issue was not todo with the network I restarted the machine and changed the Wordpress system user password.

UPDATE wp_users SET user_pass = MD5('password here') WHERE ID =1;

Website came back and I was able to log in. I'll update this answer when I find what's going on with the website going down after entering the wrong password.

I believe this has something to do with DigitalOcean's own DDOS protection mechanism. I've tried it on multiple locations. It's always the same. After you log in, it automatically blocks the Wordpress admin panel after a few clicks. And as you stated above, it has nothing to do with my firewall settings or the server being down etc. DigitalOcean should clarify this for once and all.

Have another answer? Share your knowledge.