In this article, we will learn how to install WordPress hassle-free on DigitalOcean.
DigitalOcean has upped the competition by doubling the resources for the same price we used to pay. Earlier, it was 512 MB server for $5/month and now it is a 1 GB server. This is bringing back many customers to DO who made a switch to Linode or Vultr from DO.
GET $10 OFF ON SIGN-UP.
I assume that you know how to create a droplet, add a domain in DO, sign in to the server and to perform some basic configuration.
Also, before proceeding make sure that the domain you want to use is pointing to your server. If not then please wait until domain points to your server.
To check DNS propagation, go here.
If DNS propagation is still not complete then clear cache and cookies in your browser or use a different browser.
STEP 1: Update and upgrade
The update and upgrade command varies from distro to distro. For the sake of simplicity, I assume that you have installed Ubuntu 16.04.3 x64 on your server.
We need a fresh server without any LEMP or LAMP stack installed on it.
Now run the following command:
sudo apt-get update && apt-get upgrade
This command will install updates and upgrades on your server.
STEP 2: Install EasyEngine
We will use EasyEngine to install WordPress. It is free, simple, and easy to use. This is a great DIY alternative to Cloudways.
To install EasyEngine, use the following command:
wget -qO ee rt.cx/ee && sudo bash ee
STEP 3: Install WordPress
A single line of command will install WordPress. This command includes a domain name, cache type details, and let’s encrypt SSL command.
Use the following command to install WordPress: (replace example.com with your domain name)
sudo ee site create example.com --wp --letsencrypt
Note: ‘–wp’ is used for WordPress type and ‘–letsencrypt’ is used for installing SSL. You can find more commands at https://easyengine.io.
The above command will install NGINX, MYSQL, Postfix, PHP 7 and dependencies for you. At the end of the process, you will receive installations details (login credentials) by e-mail.
This method should work on AWS, DO and Linode.
Disclaimer: This article contains affiliate links.