Installing Digital Ocean Correctly. Help needed! :)

May 15, 2015 701 views
WordPress Getting Started Apache MySQL LAMP Stack DigitalOcean Ubuntu

Hi Guys,

I am new to digital ocean (just registered yesterday). I posted a question on the original tutorial but when I refresh my comment disappears.

I followed this tutorial. I didn't have any issues along the way. Did ALL the steps in the tutorial and site is still not working.

Where do I go from there?

I get this error?

Error establishing a database connection

Look here: for info what was installed


  • I need this set-up as I will install 4 domains later on. Now I just want one to work so I can replicate the same steps for others. thanks

    by Justin Ellingwood
    WordPress is a popular content management system (CMS) that can be used to quickly launch blogs and websites. In this guide, we will discuss how to launch two separate blogs, each associated with their own domains, from one VPS.
  • The first thing I would recommend is attempting to restart your MySQL service with the command:

    service mysql restart

    If you encounter an error starting the service or still see the message I would recommend reviewing your mysql logs under /var/log/ and paste any errors occurring here so we can take a look.

    What size droplet are you running on? On smaller droplets, especially 512MB droplets the MySQL service can exhaust the available memory causing the service to crash. It is recommended to use larger droplets when hosting MySQL databases. You can also create a swap file on your droplet which will usually prevent memory related crashes.

    by Justin Ellingwood
    Swap space can be used as an "overflow" area for your system when you run out of RAM. The operating system can store data that would normally be kept in RAM on the hard drive in a specially formatted file. In this guide, we'll demonstrate how to create and use one of these files in Ubuntu 14.04.
Be the first one to answer this question.