With WordPress optimized hosting, should you DIY or have someone else manage it for you? In this guide, we explore both options and show you how to set up your own VPS…
There are many options when it comes to setting up hosting for your WordPress website. You can choose a shared hosting plan (where your site performance is at the mercy of over-provisioned servers), pay a bit more to run your very own VPS (virtual private server) with dedicated resources, or pay just a little bit extra to have someone else manage a VPS for you.
If you’re not sure about the right type of hosting for your needs, check out our guide to understanding different types of hosting.
In this guide, we’ll focus on the second option and help you understand what kind of effort goes into setting up a VPS for WordPress hosting.
More specifically, we’ll walk you through all the steps you need to set up your own VPS and then look at the pros and cons of choosing this option.
For ease of reference, you can jump to any section using the links below or go through the entire step-by-step tutorial:
What Is DIY VPS Hosting for WordPress?
VPS hosting is web hosting that uses a Virtual Private Server. As we explain here, a VPS is a nice compromise between shared and dedicated hosting.
You can customize the VPS resources to suit your needs in terms of disk space, memory, processing power, and bandwidth, and scale it if your site’s traffic increases.
DIY VPS hosting normally refers to running an unmanaged VPS (whereas with a “managed” VPS, the web hosting company handles everything like system setup, control panel installation, and technical support, leaving you free to just manage your web hosting account).
Although choosing unmanaged or DIY VPS hosting tends to be more affordable than managed VPS hosting, you need to handle everything yourself.
WordPress has its own server requirements, so if you plan to choose DIY VPS hosting specifically for WordPress, you’ll need to have technical experience with managing servers and running WordPress.
Setting Up A WordPress-Optimized VPS
VPS web hosts are plentiful and many offer great cloud-hosted servers at reasonable costs.
For this tutorial, we’ll use DigitalOcean as our host.
DigitalOcean makes it easy to set up your own WordPress-optimized VPS, as they have a one-click solution that will build a Ubuntu 20.04 VPS with WordPress and all its required software pre-installed.
That being said, there is still some configuration to be done to finish the installation of WordPress and to harden both WordPress and the server itself.
Let’s go through each step.
1. Create a non-root user to SSH to the server
First, create a Digital Ocean One-Click WordPress 5.5.1 on Ubuntu 20.04 droplet.