Error connection to database

Posted January 6, 2014 2.6k views
Hello, I have an "error connection to database". It happen after edit update-core.php - I changed permissions to all. Changing back to 644 didn't helped.

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
That's a common occurrence when running WordPress with Apache. You'll be best served to follow in the inventors' of Wordpress footsteps and dump Apache for Nginx. See How To Migrate a WordPress Installation from Apache to Nginx on an Ubuntu VPS | DigitalOcean.
by Justin Ellingwood
Many users initially set up WordPress installations using the Apache web server. While Apache does an excellent job serving content in most instances, Nginx, an alternative web server, can often do the same using fewer resources. The implication of this is that your WordPress site can handle more users if it is being served by Nginx. In this guide, we will discuss how to migrate your WordPress installation from Apache to Nginx.