Are you planning to install WordPress on the DigitalOcean droplet to get tremendous performance at a low cost?
Well, It’s not hard -as it sounds- to install WordPress on DigitalOcean’s self-managed cloud server.
By the end of this tutorial, you will have your website run on a fast and reliable cloud server on the DigitalOcean droplet.
But first, what is DigitalOcean?
Before we dive into how to install WordPress on DigitalOcean, Let’s talk a little bit about DigitalOcean.
What Is DigitalOcean?
DigitalOcean is a cloud web hosting company that provides many cloud computing services.
DigitalOcean is a well-known company that provides fast and reliable web hosting solutions.
Now DigitalOcean has 13 data centers available in 185 countries around the world.
DigitalOcean has incredible 99.99% uptime and it has one of the fastest cloud servers in the world.
Since DigitalOcean has 13 data centers around the globe, you shouldn’t worry about your website’s performance and reliability.
As all cloud providers do, they store a copy of your website on each server, so if a server fails, another server will do the job.
That leads us to wonder. What is cloud computing anyway?
Read also: DigtialOcean vs Vultr vs Linode comparison.
What Is Cloud Computing?
Cloud computing is the delivery of computing services over the internet. Including servers, storage, databases, networking, and so on.
Cloud computing is better than all other web hosting types. That’s because of many reasons.
Cloud hosting is cheap compared to other types of web hosting, you pay only for the resources you consume.
Cloud hosting is fast, reliable, and scalable. You can easily upgrade or downgrade your resources to the amount you need.
Cloud hosting Provides layers of protection technology to your servers.
DigitalOcean is self-managed cloud hosting. That means you are responsible for managing your own servers. But if you want a cloud-managed web hosting provider, try Cloudways.
Cloudways is a company that manages DigitalOcean and other unmanaged web servers. With a company like Cloudways, you will get everything done by their side. Read Cloudways review.
With that being said, let’s jump right into the first step of how to install WordPress on DigitalOcean.
Step One: Get Your Domain Name Ready
It is well known that you must obtain a domain name to get your website published on the internet.
If you already have a domain name you can skip this step and go to the next one.
If you don’t have a domain name or you want to register a new one follow up with me.
One of the best domain name registrars is NameCheap. It has a clean dashboard and low-price domain name registration.
Since it’s available, I’ll click on Buy for $5.98. I will be redirected to a page where my chosen domain name will show up and is ready to be registered.
If this is your first time registering with NameCheap, you will get a domain name registration discount.
If NameCheap did not apply the discount automatically, use this coupon code (NEWCOM598) to get the discount.
Click add to cart, then checkout, and then confirm the order.
The best part of registering domains on NameCheap is that it provides domain privacy for free.
Domain Privacy is an option that replaces your personal information in the domain’s public WHOIS with anonymous information.
Since we finished registering our domain name, now it’s time for the next step on how to install WordPress on DigitalOcean
Step Two: Sign Up For DigitalOcean
To sign up for DigitalOcean go to digitalocean.com and then click on sign up.
You can sign up with your Google account, GitHub, or by email. To get a $100 free credit for 60 days coupon click here.
Choose how you want to sign up for DigitalOcean, then verify your account.
Once you do that, you will be redirected to a page where you should select your payment method. Card or Paypal.
Select your desired payment method and then enter your payment information.
DigitalOcean requests payment information to ensure that the user is able to make the payment.
When you choose the card payment you need to fill in your card information.
Also, you need to fill in your billing address. After that, confirm your card ownership.
When you choose the Paypal payment, it will redirect you to your Paypal account to confirm the payment. Either way by Card or Paypal payment method, $5 will be deducted from your account.
The money withdrawn from you will be deposited into your DigitalOcean account for later use.
Once you do all that, you can log in to your DigitalOcean account.
Finished signing up? now it’s time to install WordPress on DigitalOcean
Step Three: Deploy A Droplet And Install WordPress
DigitalOcean Droplets are Linux-based virtual machines (VMs) that run on top of virtualized hardware.
Each Droplet you create is a new server you can use, either standalone or as part of a larger one.
Basically, a droplet is a server that has its own resources like RAM, Bandwidth, CPUs, etc.
DigitalOcean offers two types of servers. Regular servers, and premium server that uses the newest CPUs we have and NVMe SSDs.
To one-click WordPress install on DigitalOcean, you need to create a droplet. So, the big question is:
How to create a droplet on DigitalOcean?
To create a droplet go to the main panel on the left side of the control panel on the DigitalOcean dashboard.
Click on the Manage rollout tab to see all DigitalOcean options. From there select Droplets.
If you already have droplets, you’ll see all of them here, and if you don’t, you’ll see a big Create Droplet button in the middle.
Another way is through the “Create” button in the upper left corner of the dashboard.
Once you click on it, It’ll show you all the options you can create with DigitalOcean. From there select Droplets
When you choose to create the droplet, all the options and settings of the droplet that you want to create will be there.
At first glance, it may seem overwhelming. Let’s break them down one by one to make it easy for you.
First: Choose an image and select WordPress:
The first step of creating a droplet is to choose an image. The Distributions tab by default is on Ubuntu, which is what we want.
After that go to the third tab “Marketplace” to choose to Install WordPress right away with the server installation.
WordPress will be in the first results. If it’s not, search for it from the search box.
Once you do that go to the next step which is to choose a hosting plan.
Second: Choose a plan:
In this section, you need to choose what pricing and web hosting plan you want to use for your website.
The first option is to choose between a shared CPU cloud server and a dedicated CPU server.
If you know what is the difference between them, you can choose the one you need.
But if you don’t go with the default choice which is shared CPU (cloud hosting server).
Dedicated servers are meant for really big sites, also it’s very expensive compared to other types of web hosting.
The second options are to choose what resources you want for your website.
The CPU option gives you the option to host your server on regular SSD storage or the fastest NVMe SSD storage.
If you choose the NVMe it will cost you 20% extra money, but it will make your website perform better.
Also, the CPU options give you the option to host your server on AMD CPU or Inet CPU.
When you switch between these options, you will notice that the prices change.
The next option is to choose the resources you need for your website. In terms of storage, CPU, bandwidth, etc.
The first cheapest $6 per month is ideal for smaller sites. If your website gains more traffic in the future, you can easily scale up your plan.
Third: Add volume (Block Storage) if you need to:
Volumes are network-based block devices that provide additional storage space for Droplets.
You can use volumes when you plan to host large files on your websites like videos and podcasts.
When you need more disk storage but don’t want extra CPU or data transfer and RAM.
In DigitalOcean, a 10 GB block storage costs $1 per month. a 100 GB volume costs $10 per month.
To add a volume click on Add Volume, then select the volume capacity, and then scroll down to the next option.
Once you select one of the volume options, it will be created along with your server. So if you don’t want volumes, click on Remove Volume.
Fourth: Choose a data center region:
As I mentioned earlier in this tutorial, DigitalOcean has 13 data centers in seven different countries.
The closer the data center is to your clients, the better your website will perform.
Choose the closest data center to the potential customers you want to target.
After you choose the data center of the server you want to create, scroll down to the authentication options.
Fifth: Adjust authentication (Access Credentials):
DigitalOcean gives you two options to access your server with an SSH key and Password.
If you are familiar with the SSH key, it is more secure. Otherwise, use the password option.
- Must be at least 8 characters long.
- Must contain 1 uppercase letter (cannot be first or last character).
- It must contain 1 number.
- Cannot end in a number or special character.
Sixth: Additional options:
When you scroll down, just under Authentication you will see these additional options:
You can select them all, but the essential one among them is backups.
Backups are very important. Without backups, there are no guarantees that you can restore your website if you lose it for any reason.
Therefore, you have to enable it by clicking on the checkbox beside Enable Backups.
Backups on DigitalOcean cost 20% of the droplet price. Therefore, if your droplet costs $10/mo, you will be charged $2/mo for backups.
Last: Finalize and create the droplet:
This is the last step of creating a droplet on DigitalOcean.
In the first option, you determine how many droplets you want with the same configuration and capacity.
In the second option, choose a unique name for your droplet. This name identifies your droplet.
Your Droplet name can only contain alphanumeric characters, dashes, and periods.
You can use tags as well to organize and relate resources. You need this option if you have lots of droplets.
Finally, click Create Droplet.
Wait for a few seconds, and then you will see that your server has been created.
And WordPress has been installed along with the server we launched.
Now that we created the droplet, let’s move on to step four of how to install WordPress on DigitalOcean.
Step Four: Configure The Droplet
There are several options and settings in every droplet that you should know about.
The project -in this tutorial is Hosting Engines- which can contain multiple droplets. And you can make multiple projects.
When you click on any project, all the apps in that project will show up.
This is what the droplet looks like after installing it.
When you hover over the droplet name, you will see the droplet server location, RAMs, and disk storage.
The numbers beside the droplet name are the IP address of the server.
The three dots on the right of the droplet panel are the settings of the droplet.
From there you can access the server via SSH terminal, resize droplets, view backups, delete the droplet, and more.
More settings will be fetched when you click on the droplet name such as monitoring and access details.
Under the droplet name, you’ll find the droplet details like the droplet resources and the droplet applications.
The left panel shows different options for the single droplet. The Graphs is simply monitoring the server.
The Graphs show how much your application is consuming the server in terms of CPU usage, memory, disk space, bandwidth, etc.
So you know exactly how your server is performing.
You can turn the droplet power off, resize the server, add volume, see backups, and many more features from there.
The console to the right of the dashboard is a terminal that allows you to access the server via SSH root, and that’s what we are going to do next.
The last step of how to install WordPress on DigitalOcean is to configure WordPress installation.
Step Five: Configure WordPress
After you installed WordPress one click on the droplet, you need to access the droplet server as root via SSH to finish the WordPress setup.
But first, let’s point the domain name that we registered earlier to the droplet we created.
Point the domain name to the droplet:
To point the domain name to the droplet, copy the IP address of the droplet then go to where your domain name was registered.
Go to the DNS settings of the domain and add an “A” record and a “CNAME” record.
The “A” record maps a domain name to the IP address.
So whenever someone clicks on your domain name, he will be directed to your website.
The “CNMAE” record redirects the “www” version of your website to the “non-www” version.
To add “A” record, click add new records, in Host insert the “@” sign, and in Value paste the IP address of your server( droplet)
To add the “CNAME” record, in Host type “www”, and in Value type in your domain name as you see in the image below.
After that click SAVE ALL CHANGES and head back to DigitalOcean to complete the WordPress Installation.
Log in to the server via SSH terminal:
You can log in to your server root via the droplet console that DigitalOcean provides, or via a third-party terminal such as Putty.
To access the server using Putty you need to enter the IP address and the password that you created during the droplet installation.
In this example, we will use the droplet console. Since we already logged in, we don’t need to enter either the IP address or the droplet Password.
To log in to the server root via Droplet console, click console or access, log in as root, then click Launch Droplet Console.
Once you do that, the droplet console will automatically access your server root. Be careful when making your input. try not to make a mistake.
Complete the WordPress installation:
In the terminal window, you will see a bunch of lines. Ignore them and go to the bottom of the lines.
It’ll ask you to enter your domain name, and type in your domain name with “HTTP” like (he-tests.com) as you see in the image below.
Once you type in your domain name hit enter to go to the next step.
In the next step, you will create the admin user credentials of WordPress. The username and password of your WordPress website.
Starting with entering your email address. type in your email address and press enter.
Next up, enter the username and hit enter, then enter the password and hit enter as shown below. These will be the WordPress admin credentials.
When you type your password, it will not be visible on the screen for added protection. So write it carefully.
After that type in the title of your website and press enter.
To confirm that the information you entered is correct, type “Y” and press enter again.
The next line will ask you if you want to install the LetsEncryot SSL certificate. Type “Y” to confirm and hit enter on the keyboard.
Then you will be asked for an email address to get notified with it when the SSL certificate expired.
Enter the domain name and then click enter.
The next line asks for your agreement to DigitalOcean’s terms of service. enter “A” to agree and hit enter.
After that, you will be asked if you want to share your email address with the Lets Enceypt foundation.
Enter “Y” if you want or “N” if you don’t want, and then hit enter for the last time.
Once you hit that last enter button, you should receive a confirmation message that tells you that WordPress has been installed successfully.
Now you can use your domain name to see your WordPress website.
And you can go to “https://yourdomain.com/wp-admin” to access your WordPress admin area with the username and password you created earlier.
Yes, it may take some time to install and configure WordPress on DigitalOcean, but it’s totally worth it.
I recommend you go with DigitalOcean right away, it’s a cheap, fast, and reliable cloud computing service.
Read also: DigtialOcean vs Vultr vs Linode comparison.