How to Install WordPress in DigitalOcean

By WP Saviour •  Updated: 02/28/21 •  14 min read

DigitalOcean is no doubt one of many quickest rising cloud web internet hosting firms throughout the globe that focuses on simplicity and scale. As we communicate we’re going to find methods to arrange and configure WordPress on DigitalOcean.

Why We Love DigitalOcean

Opening its doorways in 2011, it shortly grew to grow to be one in all many largest cloud web internet hosting suppliers with over 1,000,000 clients. DigitalOcean servers are sometimes often called Droplets – the smallest unit of a cloud server which you might buy starting at $5/month.

The essential factor problem to DigitalOcean’s stupendous success is its simplicity. Together with being a transparent and simple chance, there could also be heaps additional to love DigitalOcean in your WordPress website online. Listed beneath are 5 the explanation why we uncover DigitalOcean to be superior.

Observe: That’s an non-compulsory half, you’ll skip it and bounce correct into the next half to place in WordPress in DigitalOcean.

Aggressive, Moderately priced Pricing


DigitalOcean Pricing (September 2018)

DigitalOcean has one in all many lowest pricing components throughout the cloud web internet hosting commerce. You’ll get started together with your particular person server for as little as $5/month.

Three traits make DigitalOcean extraordinarily cheap.

  1. Pay-per-hour utilization
  2. No minimal interval of renting
  3. No setup cost (even for large setups)
  4. Plans start at $0.0007/hour
DigitalOcean's droplets start as little as $5/month!

The $5/month droplet comes with:

Computerized 1-Click on on Installer for WordPress


1-Click on on WordPress Arrange equipped by DigitalOcean

DigitalOcean has a sweet ready-made image for WordPress and a plethora of various open-source software program program, which makes it a helpful asset. With just some clicks (you’ll see how) we’ll be succesful to create common working arrange of WordPress in a short time.

Epic Neighborhood and Knowledgebase


DigitalOcean’s community-focused technique to worthwhile prospects

DigitalOcean has a plethora of tutorials on nearly any OS, any software program program and any (web internet hosting related) topic! Top-of-the-line half – it’s meticulously examined on their droplets in order to ensure it actually works in your droplet as properly!

Except for tutorials, you even have full of life Q&A boards and attention-grabbing neighborhood initiatives.

Dynamic Resizing

With DigitalOcean, you’ll dynamically resize your droplet. Have in mind we talked about it in Introduction to Cloud Computing with WordPress? Everytime you need some further juice, resizing a droplet as easy as twisting a knob to increase the amount!

Trusted by the Best Builders


Builders love DigitalOcean

John Resig, creator of jQuery (among the many most interesting JavaScript frameworks), Salvatore Sanfilippo, creator of Redis, and the co-founder of StackExchange, Jeff Atwood – all use DigitalOcean for his or her initiatives.

Placing in WordPress on DigitalOcean

Prerequisite: While you’ve signed up for DigitalOcean, you need exchange your contact information and change some money (spherical $5) to your DigitalOcean account to create your first droplet. Think about it as a pay as you go cellphone. It is advisable to use PayPal or financial institution card to recharge your account. Now we’re in a position to create our WordPress droplet.

DigitalOcean Shopper Account Group: What are Initiatives?


Initiatives are a basic unit of group in your DigitalOcean account. Each enterprise can have a lot of droplets and completely different choices (much like load balancers and object storage) that DigitalOcean has to provide. A single DigitalOcean account can have a lot of initiatives.

We start by creating our first DigitalOcean enterprise. Select a enterprise title, description, enterprise aim and setting. An setting could also be each Development, Staging or Manufacturing. For our tutorial, we’ve chosen the alternatives as confirmed throughout the screenshot above.

Since DigitalOcean is a developer focused cloud web internet hosting platform, they’ve these additional selections that go an important distance in serving to builders arrange their initiatives.

Learn the way to Create WordPress Droplet in DigitalOcean

While you’ve created a enterprise, now you may create a droplet.


Step 1: We start off by making a droplet contained within the WPSaviour enterprise.


Step 2: Select Ubuntu as your droplet’s OS after which select the One-click apps tab.


Step 3: Select WordPress on 18.04. Due to this DigitalOcean goes to mechanically arrange WordPress on Ubuntu 18.04.


Observe – It’s possible you’ll furthermore add backups to your Droplet. However, this is not very important to us since it’s a tutorial. Moreover, this should not be confused with WordPress backups. A droplet backup are automated system-level backups, which suggest they copy all of the issues throughout the OS (and by no means merely WordPress).


Step 4: DigitalOcean droplets could also be deployed all through eight fully completely different datacenters. Since I’m located in India, I’ve chosen Bangalore. It is non-compulsory to choose the additional selections (much like private group, IPv6, and so forth.) and an SSH key. Since we’re proper right here to solely arrange WordPress, these choices acquired’t be important. However be glad to aim them out in your DigitalOcean account!


Step 5: As you’ll see, the default enterprise, i.e. WPSaviour is mechanically chosen. Enter a hostname (that’s so to keep in mind internally) and click on on on Create to start creating your droplet.


DigitalOcean droplet is ready!

Step 6: As quickly because the droplet is created, you’ll see message similar to the screenshot above.


You have to additionally get hold of the identical piece of email in your registered DigitalOcean piece of email account.

Logging into DigitalOcean droplet by SSH Console

It’s almost time for the well-known 5 minute WordPress arrange. Solely this time we’re going to be achieved inside 2 minutes. We already have the IP deal with that we’re ready to make use of to login to the WordPress server. However, we’ve to login to our DigitalOcean droplet by SSH for a first-time configuration.


Besides we do that, we’re going to see a message like this after we enter the IP deal with in our browser. It’s possible you’ll login to your DigitalOcean droplet by SSH using Putty in Residence home windows or Terminal in Mac. However, DigitalOcean has a good simpler methodology to try this, as confirmed below:


First, from you DigitalOcean dashboard, select your droplet, after which select the Entry tab from the left menu. Click on on on Launch Console to entry your droplet by SSH using your web browser.


Subsequent, enter your username (root) and password that was emailed to you earlier. You’ll be immediately requested to create a model new password for the inspiration client account. While you’ve reset the inspiration password, it is best to see a message similar to the one above.

That’s it. We’re now ready for the well-known 2-minute WordPress arrange!

Configuring WordPress arrange on DigitalOcean

To date we’ve:

Now we’ve to do the last word steps to get our WordPress website online ready.


Enter the IP deal with in your browser, and it’s good to be greeted with the well-known arrange show display screen.


Now select a username, password and piece of email deal with. The database configuration has been pre-configured by DigitalOcean. You may additionally have to flip off search engine visibility, within the occasion you’re testing a website online. Solely issue is, it is best to permit it as quickly as your website online is ready.

Click on on on Arrange WordPress and let the magic happen.


And there you’ve got it – WordPress is ready.


This marks the highest of our basic tutorial.

Bonus: DigitalOcean For Freshmen (One different Cloud Selection)

Have in mind after we did our Cloudways web internet hosting overview a while once more? Properly one in all many cool choices that Cloudways provides is the selection to determine in your cloud, and one in all many picks is DigitalOcean! Since Cloudways does the entire heavy lifting for you, you’ll merely stage click on on and get started web internet hosting your website online so you’ll had the entire superior benefits of cloud web internet hosting with DigitalOcean minus the setup. This makes Cloudways a superb chance for newbies or for people who don’t want to dig into the technical facet of building cloud web internet hosting.

Superior WordPress configuration in DigitalOcean

Having a WordPress website online in DigitalOcean is good. However, it acquired’t do loads good in case your WordPress website online’s URL is an IP deal with. We’ve to hyperlink it to a website title. Moreover, encrypted websites are the norm proper now, so we’re going to find methods to arrange an HTTPS certificates in our WordPress droplet.

Proper right here’s a round-up of what we’ll be defending in our superior WordPress configuration half:

Configuring a website title to your DigitalOcean WordPress droplet

With a view to configure your WordPress URL, you need to:

It’s a two half course of that should be achieved sequentially.

Half 1: Together with an A file to your space:

This half largely is decided by your web internet hosting provider. It is best to refer your hosts documentation on together with A knowledge to your DNS. Or simply Google “the suitable manner so as to add a file in ” It is best to get specific instructions.

In case your host comes with cPanel (most shared web hosts do), we’ve purchased a tutorial for you correct proper right here:


Step 1: Login to your cPanel account and select Zone Editor. You may too use the search carry out in cPanel to quickly discover this software program.


Step 2: Click on on on + A Doc in order so as to add a model new A file.


Step 3: Let’s assume your space title is and in addition it’s good to stage it to your new DigitalOcean droplet. On this case, you need to add two A knowledge in your DNS Zone editor. The first one is for and the other is for Every these information will stage your main space title to the droplet’s IP deal with. It is best to make use of the following configuration:

A Doc #1: ‘’

Establish: (certain a trailing '.' is included)
Sort out: Inside the deal with space, add you droplet's IP deal with.

A Doc #2: ‘’

Establish: (a trailing '.' will mechanically appear. If it does not, ignore it!)
Sort out: Your droplet's IP deal with.

However, for our tutorial, we’re using a subdomain – Attributable to this truth we’ve entered a single A file for the subdomain to stage to the droplet’s IP deal with.

Observe – this setup may also be useful for websites which have fully completely different subdomain for his or her weblog. For instance “”.

A Doc for our tutorial: ‘’

Sort out: Our droplet's IP deal with

As quickly because the A knowledge are configured to stage to the droplet’s IP deal with, it must take some time for it to copy. (It does not happen instantaneously). This prepared interval is named the DNS propagation time, and lasts as a lot as 24 hours. However, nearly speaking, it mustn’t take higher than 5 minutes if it’s a model new A file.

Step 4: To substantiate that the A file is working, enter the URL (which in our case is in your browser, and it is best to see your WordPress website online. That tells you that you just’ve effectively linked your space to your DigitalOcean droplet.

Half 2: Altering the WordPress Website online URL in DigitalOcean


As soon as we’ve put within the WordPress website online in DigitalOcean, the positioning URL is mechanically configured to be the server’s IP deal with. We now must fluctuate it to the model new space title we merely configured.

Head over to the WordPress dashboard → Settings → Regular. We’ve now to fluctuate two fields proper right here:

Change it to the respective URL you’ve set throughout the A file throughout the earlier half. It must be each ‘’ or ‘’. Observe that every the WordPress Sort out and the Website online Sort out must have the similar values.


In our tutorial, we’ve used As quickly as achieved scroll down and hit Save to save lots of plenty of the modifications.

Your WordPress website online is now ready!

Together with HTTPS to WordPress using DigitalOcean

Establishing an SSL certificates permits HTTPS on the web server, which secures the guests between the server and the consumers connecting to it. DigitalOcean pre-installs a software program often called Certbot throughout the one-click WordPress arrange droplet. Certbot is a free and useful choice to rearrange SSL certificates on a server.

We’ll now take a look on the proper option to configure Certbot in DigitalOcean in order so as to add HTTPS to your WordPress website online.

In keeping with DigitalOcean’s documentation, to utilize Certbot, you’ll desire a registered space title and two DNS information:

That’s much like the half 1 of the DNS configuration half. And guess what? We’ve already achieved it!

As quickly as this step is completed, we’ll must login to the droplet’s console by SSH and run the following command:

certbot --apache -d -d

Solely issue is is modified collectively together with your space title. In our tutorial, since we’re solely using a subdomain, the command goes to be:

certbot --apache -d


Wrapping Up

DigitalOcean is no doubt one of the vital fascinating examples of developer-friendly cloud web internet hosting suppliers available on the market. They’ve in depth documentation along with a faithful internet web page for WordPress and ticket-based assist system. Powered by intuitive design, user-centric guides and robust choices, DigitalOcean is altering the face of cloud web internet hosting – one droplet at a time. And with a $5/month entry stage, it’s an outstanding place to find methods to get your palms dirty with WordPress.

gp-3410737 as-1417513

WP Saviour

I am a WordPress specialist. My mission is to help you create beautiful websites with ease!