Error establishing a database connection
Today I have started to see in my website this message “Error establishing a database connection”, so I was investigating and I saw this article related and I have tried to implement it but its not working for me I still getting the same issue and I have no clue why.
Below is what I have implemented from the article:
For Apache on Ubuntu 14.04, edit the configuration file with the following command:
sudo nano /etc/apache2/sites-available/000-default.conf
Add the highlighted lines below between the <VirtualHost> tags.
Apache VirtualHost Config
deny from all
Save and close this file when you are finished.
Restart the web server to enable the changes:
sudo service apache2 restart
What is weird is when I restart the droplet the website works for a couple of seconds so.. I cant figure out how to fix it.
512 MB Memory / 20 GB Disk / LON1 - Ubuntu WordPress on 14.04