Install WordPress on a VPS Server
Installing WordPress on a VPS is a very simple task to do in 2020. Many one-click applications have facilitated the process of installing WordPress on a server.
A few years ago, installing a VPS was an exclusive task for expert developers. But today, anyone who reads this tutorial until the end can install WordPress very easily.
If you want to install WordPress on a VPS, you must first choose the right hosting. The two main cloud-hosting are DigitalOcean and Vultr.
- DigitalOcean vs. Vultr
- How to Install WordPress on Vultr (+ Free SSL)
- Step 1: Create an account in Vultr
- Step 2: Create a Vultr Server
- Step 3: Point DNS to Server IP
- Step 4: Configure VPS server in Vultr
- How to install WordPress in DigitalOcean
- Step 1: Create an account in DigitalOcean
- Step 2: Create a “Droplet” VPS server
- Step 3: Point domain nameservers to DigitalOcean
- Step 4: Add the domain in DigitalOcean
- Step 5: Configure WordPress
- What is a VPS Server?
- VPS vs. Dedicated Server
- Install WordPress for VPS: Final thoughts
DigitalOcean vs. Vultr
|Pricing||From $5||From $5|
Both options are great for installing WordPress on a VPS. Personally, I have used both for a long time and I have had 0 problems.
If you want to read the full comparison, here I have written an article about DigitalOcean vs. Vultr.
How to Install WordPress on Vultr (+ Free SSL)
Vultr is one of the best VPS for WordPress. The installation of WordPress is very simple. With a few simple steps, you can have WordPress installed on your Vultr instance.
In this tutorial, I will explain how to install WordPress on a Debian server with a free SSL certificate easily. The reason I don’t use the default one-click application in Vultr is because it comes without SSL.
Instead, my method includes how to install WordPress with a free 1-click SSL certificate.
Step 1: Create an account in Vultr
Step 2: Create a Vultr Server
The VPS servers are called “Instance” in Vultr. It’s just a way to name the VPS.
On server, select Cloud Compute.
Then, in server location, select the city closest to your target audience. It is always convenient to choose the server closest to the public, as it will work faster.
Then, in server type you must select 64 bit, and Debian 10 x64.
In the server size, you can choose the one you want. The basic plans range from $ 5 to $ 80 per month.
In “Additional Features,” you don’t need any additional options.
Simply name the server and click on “Deploy Now”.
Step 3: Point DNS to Server IP
Once you create the server, it will appear on your products. This server will have a unique IP that will look like this:
What you have to do is point the DNS of your domain to this IP.
To do this, you must find the “DNS” or “Advanced DNS” section in your domain provider. In the case of NameCheap, it will appear like this.
You must create two A Records:
- 1st A Record: In “Hostname” it should say “@”. In other domain registrars you may have to leave it empty. And in value put your IP address of Vultr.
- 2nd A Record: In “Hostname” you must say “www”, and in “Value” you must type the same IP address.
After creating the records, they will look like this:
Once you changed the DNS addresses, you should wait at least 30 minutes to make sure the change was made.
Step 4: Configure VPS server in Vultr
Now, go back to Vultr and click on your server.
On your server, go to the console.
The first step is to log in with the username and password that appear on your server.
Now is the time to install WordPress on the server. To do this, you have to install WordOps. This is a tool to install WordPress easily with an SSL certificate.
You must run this command:
wget -qO wo wops.cc && sudo bash wo
It will ask for your name and an email.
Now, you must create your site in WordPress.
For that, you must run the following command:
sudo wo site create example.com –wp –letsencrypt
Of course, you must replace “example.com” with your domain.
When the installation process is finished, you will see the username and password to log into WordPress.
And that’s it. You already have WordPress installed with a free SSL certificate.
How to install WordPress in DigitalOcean
Installing WordPress in DigitalOcean is also very simple. The DigitalOcean process is a bit simpler than in Vultr since this “One-Click” application includes a free SSL certificate.
The process I will show is how to install WordPress on a DigitalOcean VPS server in a few simple steps.
Step 1: Create an account in DigitalOcean
Step 2: Create a “Droplet” VPS server
In DigitalOcean, VPS servers are called “Droplets.” Sounds cool, right?
Go to the main panel and create a droplet.
In image, select “Marketplace”, and the “WordPress” app.
Then in the plan, select the one you want. You can start with a $ 5 one and then upgrade to a larger one. At any time, you can change the type of plan.
For the datacenter region, it will also depend on you. Remember to choose the one closest to your audience.
For authentication, you must select “One-time Password”. This is a password that will reach your email after installing the droplet.
This password will help you to log into your droplet console.
Click on create droplet, and the installation process will begin.
Step 3: Point domain nameservers to DigitalOcean
The third step is to point the nameservers to DigitalOcean.
To do this, go to the domain nameservers and switch to those of DigitalOcean.
You have to point your domain to the following NameServers:
After changing the nameservers, you must wait at least 30 minutes to go to the next step (as it may take time to update).
Step 4: Add the domain in DigitalOcean
The next step is to create the domain in DigitalOcean.
Go back to DigitalOcean, and in the newly created droplet, select “Add a domain”.
Enter your domain in this way “yourdomain.com”. Without the quotes, of course.
Once you add it, you must create a new CNAME record.
In “hostname” you must put “www” and in “it is an alias of” enter “@”.
Step 5: Configure WordPress
The fifth step is to configure your new site using the console.
To access the console, you must go to your new droplet and click on “Console”.
To login to the console, you must enter the username and password that came to your mail (at the time you created the droplet).
From now on, the console will automatically guide you to set up your site. You must not be wrong in any process, so I will help you.
First, it will ask for your domain. You must enter it as follows:
Then, it will ask you to create data to log into WordPress. You need to enter an email, username, password, and Blog Title.
Now, it will ask if you want to install Let’sEncrypt. This means if you want to install the SSL certificate, enter “y”
Then, it will ask you in which names you want to activate HTTPS. You must select both options. For that, write “1, 2”.
In the next step, it will ask you if you want to redirect all access to HTTPS. You must select option 2.
And that’s it, you already have WordPress installed in DigitalOcean with SSL certificate.
What is a VPS Server?
Installing WordPress on a VPS server was very simple. But what is a VPS?
VPS (Virtual Private Server) is a type of hosting in which you have isolated a part of a server. In a VPS, you have a RAM, CPU, and SSD allocated virtually for your solo.
On each real server, many VPS are distributed virtually.
Each VPS also has its own IP.
Unlike shared hosting, VPS is much faster since it has its own virtual resources. Besides, you have your own IP, and you don’t have to share it with anyone.
VPS vs. Dedicated Server
So what is the difference between a VPS and a dedicated server?
A dedicated server is simply an entire server.
You have this server entirely for you. There is no virtual neighbor.
Typically, dedicated servers are used for websites with millions of visits per month.
Since a VPS works perfectly for thousands of daily visits.
Install WordPress for VPS: Final thoughts
Installing WordPress on a VPS server is ideal for your website to run fast.
This is a straightforward task to do.
The best VPS for WordPress are Vultr and DigitalOcean. In both, the plans start at $ 5 and work great.
Personally, I use both DigitalOcean and Vultr. None brought me any problems to this day. That’s why I recommend both.
Best of all, you don’t need any kind of web development knowledge, but it’s very easy to do.