I have followed the tutorials to install WordPress on LEMP, but I end up getting the “error establishing a database connection” message every time. Even when using the wp installation script by DO on Github. I just can’t seem to find a working solution, and I believe it must be something to do with the Nginx configurations. Using the Ubuntu WordPress 14.04 (LAMP) image installs wp with no problems. But given that Nginx is much more preferred to Apache, why haven’t you guys at DO built up a LEMP WordPress base image that works? It’s so much easier setting up sites with base images.
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.
@joeyy its not that hard actually. just follow this 2 tutorials and you are ready to go
https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-nginx-on-ubuntu-14-04
Click below to sign up and get $100 of credit to try our products over 60 days!
If you look at the time line for 16.04 it doesn’t release to stable until the end of the month
*16.04 would be nice too.