The idiots guide to installing WordPress on DigitalOceans $5 a month plan

I’m not interested in getting into the technical aspects of setting up a VPS as a web server – instead I choose to use DigitalOcean and ServerPilot to get me going in minutes – not the hours or even days it can take to install and configure all the pieces of the stack.

Here’s what you get:

  • WordPress on a managed VPS for a bargain price
  • A choice of PHP versions – 5.4, 5.5, 5.6, 7.0 or 7.1
  • Nginx in front of Apache
  • PHP-FPM – PHP’s official FastCGI process manager
  • MySQL
  • HTTP/2
  • Google PageSpeed Module

Note: this solution does not provide automated backups of your website or DNS hosting and management.

And boy is it quick! This is a base install of WordPress, no caching, no optimising (other than what the server does for us).

Here’s the process took to set this up.

Step 1: Digital Ocean

Signup and verify

  1. Head over to DigitalOcean and create an account – if you use my referral you get a bonus $10 credit – giving you a two months free hosting. https://m.do.co/c/4f79d0a4ae0f 
  2. After verifying your email address you’ll need to verify your account by either providing your credit card details (no charges applied) or paying $5 through PayPal (leaving you with $15 credit).

Setup SSH

SSH will allow you to securely access your host using a security certificate instead of a password – think of it as a super strong password.

See the official DigitalOcean documentation: https://www.digitalocean.com/community/tutorials/how-to-use-ssh-keys-with-digitalocean-droplets 

Create the “droplet”

Now you’re ready to create your first “droplet” (what DigitalOcean calls VPS instances).

  1. Click on the ‘Create’ button at the top right of the page and choose ‘Droplets’
  2. DO NOT select the WordPress one-click install. Instead, choose ‘Ubuntu’
  3. Under ‘Choose a size’ choose the $5 a month plan – you can always upgrade later on if you need more resources
  4. Under ‘Choose a datacenter region’ choose a region that is closest to your target audience – if in doubt, New York is an excellent choice.
  5. Under ‘Select additional options’ tick ‘Monitoring’ (you can choose other options – but some come at an added cost (e.g. backups adds 20% cost)
  6. If you create an SSH earlier, select it under ‘Add your SSH keys’
  7. Finally, under ‘Choose a hostname’ enter a name for the droplet – I like to use the name of the website
  8. Then click ‘Create’ to start creating the droplet.
  9. After a few seconds the new VPS will be created and ready to use
  10. Click on the name of the server, then click on ‘Access’ in the left hand menu
  11. Under ‘Reset root password’ click on the ‘Reset Root Password’ button
  12. A temporary password will be sent to your registered email address
  13. Now click on the ‘Console link at the top right
  14. A window will open displaying the console of your VPS – note that you cannot copy-paste into this window
  15. Enter the login of “root” and the password you received in the email
  16. You will now be prompted that the password needs to be changed – enter in the same password again
  17. Then when prompted enter in a new password (twice) — this password protects your server, it is critical that it is 100% secure and un-guessable – use a random password generator to create a password of 16+ characters.
  18. When you have successfully set the new password you will see the following prompt
  19. You can now close the console window.

Step 2: Configure the domain

This step depends on your DNS host – so cannot be documented.

But you now need to point your domain name, in this case test.itsupportguides.com to the IP address of the VPS you just created.

Note: DNS changes can take time to be seen across all networks. If you cannot “ping” the domain name to resolve the IP address – restarting your modem may help speed things up, failing that you will just need to wait. It can take up to 24 hours, but typically is ready in under 15 minutes. You can however progress to step 3 while you wait.

Step 3: ServerPilot

  1. Head over to ServerPilot and create an account – if you use my referral you get a bonus $10 credit – giving you a two months free hosting. https://serverpilot.io/a/95fbef7f86ad
  2. Once logged in click on the ‘Connect a Server’ button
  3. Tick ‘I don’t have a root password or public IP address. (Requires manual install.)
  4. Enter in the hostname and a password that you (and ServerPilot) will use for SFTP (FTP) access.
  5. Click ‘Connect to ServerPilot’
  6. The next screen will give you a set of commands to enter into the VPS’s console
  7. Return to the ServerPilot website, open the console and enter the command as instructed — don’t hit the enter key until you’ve completed entered in the whole command
  8. Once the command has ran, refresh the page at ServerPilot and you should now see the IP address listed with the server you added
  9. Click on the server name
  10. Click on ‘Create App’
  11. Enter in the name and domain
  12. Tick ‘WordPress’ and enter in the WordPress details for the new install — note these down for later! Note: if you plan to migrate an existing WordPress install to this site I like to keep the login details the same for simplicity.
  13. Now sit back and let ServerPilot do all the hard word – your WordPress install will be running shortly.
  14. When it’s done, load the website and enjoy !

Here’s what the performance looks like for this install