Report this

What is the reason for this report?

Error establishing a database connection

Posted on April 27, 2016

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 <VirtualHost> …
<files xmlrpc.php> order allow,deny deny from all </files> </VirtualHost> 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.

Droplet details: 512 MB Memory / 20 GB Disk / LON1 - Ubuntu WordPress on 14.04

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.