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
<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
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!
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.
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.
Click below to sign up and get $200 of credit to try our products over 60 days!