How to install WordPress with Plesk on DigitalOcean

How to install WordPress with Plesk on DigitalOcean

WordPress hosting with Plesk on DigitalOcean's droplet (virtual machine)

·

4 min read

This is one of the cheapest and quickest solutions to have a website up and running that contains a blog with backups and your own email. The WordPress site is hosted on DigitalOcean's virtual machine (droplet) that goes for as low as 5$/month.

DigitalOcean compared to GCP, AWS, Azure, etc, offers a one click deployment with minimal configuration that allows you to host several WordPress sites (or CMS of your choice) through Plesk. This allows you to have personalized email accounts using your domain without additional cost. It's perfect for small businesses, MVPs or early projects.

To start you need a DigitalOcean account. From the referral link you get 100$ for 60 days.

The guide is as follows:

  1. Install Plesk on DigitalOcean
  2. Set up Plesk and install your WordPress site
  3. Set up SSL for WordPress
  4. Set up the webmail on Plesk
  5. Set up backups or snapshots for your DigitalOcean droplet

If you get lost and need technical support I can ignore you on Twitter @tekbog

Install Plesk on DigitalOcean

What we are going to do is go to marketplace, search for Plesk and click on Create Plesk Droplet:

image.png

After we select our machine (remember to save the password, I personally use KeePassXC ).

Set up Plesk and install WordPress

We go into our droplet and copy the ip, which will lead us to this page:

image.png

Don't be too quick!

image.png

We will need to make an username and password, I'd recommend using a password manager like KeePassXC.

image.png

Plesk ready to use:

image.png

Click on add a new domain, if you don't have one just select temporary domain and go to the install WordPress step:

image.png

Once you have added your domain you will have to configure your DNS, just follow the link: image.png

In my case I had to follow NameCheap 's instructions but you can pick your registrar.

image.png

What we want to do next is go to WordPress and install the site: image.png

It will ask for your admin's username and password:

image.png

after you set that up it will install WordPress:

image.png

Set up SSL for our WordPress site

The first thing you will notice when you have your site ready is that it lacks a security certificate image.png

Web servers work through HTTP however in order to add security and encryption we add an SSL certificate (the 'S' in HTTPS stands for secure, so when you see https it just means the data is encrypted and secure). Just click on the "no certificate button" and "get SSL/TLS certificate":

image.png

You will see this page: image.png

Feel free to buy one if you want, however a Let's Encrypt certificate is more than enough, click on install.

We want to secure everything since we will be using the webmail as well: image.png

In order to validate our domain we will need to add a TXT record in our DNS:

image.png

Plesk does this automatically.

While this is going on your server (droplet) might suffer a bit, just be patient:

image.png

Once you are done you will see that your site contains https:

image.png

Set up the webmail on Plesk

Our encryption is ready for our site, let's set up our email. Digital Ocean's default Plesk license allows 3 emails. Go to Mail and click on Create Email Address:

image.png

The next thing is to input the data, however I'd recommend on deactivating "Can be used to log in to Plesk" for security reasons:

image.png

In order to use our email we can open it through this button: image.png or just go to: webmail.your-domain.com

However due to security policies our outgoing mail is ending in spam, to fix this what we need to do is enable DKIM, go to mail, mail settings and click on your account, you will see the following:

image.png

Check the DKIM box, click on apply and then OK: image.png

And in order to get rid of the

You cannot send emails from Plesk because outbound connections on TCP port 25 is blocked. Check the firewall settings or contact your hosting provider. If you are sure that the ports are already open, Plesk can recheck them. Start the recheck

Just click on start Recheck, if you are not sure if it has worked go to your DNS settings and check for a DKIM record. I've had problems with this issue before, there's even a support article from Plesk here however you shouldn't worry about doing anything with the firewall. Another possible issue related to DKIM records can also be found here. The solutions is literally to turn it off and on, like always.

image.png

It's very important to double check that our email works properly before launching our site or starting a marketing campaign, make sure it doesn't land in spam!

Set up backups for your DigitalOcean droplet

DO NOT FORGET BACKUPS!

You can also use Plesk for backups but we are going to just snapshot our entire VM.

Go to droplets, click on your droplet and then click on backups: image.png

This costs an additional $1, however you can also just do Snapshots on your own, which is what I do for new projects that haven't exactly started yet:

image.png Once you have created your snapshot all you have to do is restore when things go wrong: image.png