Error connection to database

January 6, 2014 1.3k 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.
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.
Have another answer? Share your knowledge.