How to Install WordPress on a VPS 3 quick and easy steps

Hi there, I’m Arslan, and in this article, I’ll show you how to install WordPress on a virtual private server.

If you’re ready, let’s start.

If you want to earn money online through blogging or creating an e-commerce website, I recommend hosting a WordPress website on VPS.

  • Dedicated Resources
  • Upscaling Resources
  • Security-wise

First, you will get dedicated resources, resulting in faster loading times and better performance

Second, upscaling resources will be easier as you can access the root server.

And third, security-wise, VPS hosting is safer than shared hosting as your Site won’t be affected by other users’ activities.

hosting a WordPress website

Overall, a VPS offers better performance, scalability, and security, especially if you expect high traffic or want to build a resource-heavy website. While setting up a VPS account might seem tricky for beginners, it’s very simple.

Let’s go through the steps. 

How to install WordPress on a VPS

Now, we get into the fun part. The first step to setting up your server is purchasing a hosting plan. 

Choosing a Hosting Plan

Before you decide on a hosting plan, several factors to consider are:

  • Customer support
  • Performance
  • Server resources
  • pricing
  • Security features

For VPS hosting plans, pricing starts at around $6 a month. Our VPS plans differ in server hardware resources, but they have similar features like snapshots or root access support.

All VPS plans also offer robust security features such as Sohocean PHP Hardening, which you can easily install from each panel.

Hostinger also provides 24×7 support and an AI Assistant to ease server management. Let’s head to Hostinger.com and choose VPS Hosting from the Hosting menu.

Hostinger.com

Click here, Start Now, to see the plan options. They all support most Linux operating systems, including Ubuntu, CentOS, Debian, AlmaLinux, Rocky Linux, and Fedora.

Best VPS hosting Plan

Choose any plan that suits your needs best. This time, we’ll go with KVM2, the most popular one that’s powerful and left to power small to medium websites. Pick the 12-month bundle for the best deal here, and don’t worry about the commitment. You will be able to easily scale your resources anytime from each panel’s members area.

Then, create your hosting account by entering your email. You can also use your Facebook or Google account for that. Select a payment method and choose your residing country. Don’t forget to apply the VPS 10 coupon code for an extra discount and complete the process.

Once your payment is confirmed, let’s move on to the next step. 

Purchasing a Domain Name

After getting a hosting plan ready, we should buy a domain name to make the website easily accessible. Think of a name that’s catchy and memorable for your niche.

A good domain name shouldn’t be too long, and it would be better not to include any numbers or double letters. Make it easy to spell but still represent your website’s topic. If you still don’t have any idea right now, benefit from tools like ChatGPT or a domain name generator to give you multiple suggestions.

Domain name Search

Once you have a domain name, go to the Domains menu on Hostinger’s website. Type your desired domain name into the box and click Search. If the domain name is available, you will also see several extension suggestions.

Domain name Suggestion

If not, our tool will suggest some alternatives. For this time, we’ll go with .com as the most popular extension. Pick a domain name and period and fill in your credentials, just like buying the hosting plan earlier. After proceeding with the payment, we can now set up the VPS.

Setting UP the VPS

Login to the hosting account to access HPanel.

Setting up the VPS

 

Click this Setup button beside the VPS hosting we bought. Now we get to the Configuration Wizard.

Let’s start!

Select Location for VPS

 

Select the server’s location here. Choose the closest one to your residence to improve the website’s loading speed.

Choose operating System

Then, choose the operating system to run the server. Pick an OS with a Control Panel for easier server management, especially for beginners. You can switch to another VPS operating system later, but it will wipe all of your website data.

So, if you want to do that, ensure it’s necessary and don’t forget to backup your website files. 

 

choose the Control Panel

Next, choose the Control Panel for the server configuration. We will use Cloud Panel. If you have another panel in mind, you can see more options by clicking this menu.

Control Panel Password

Proceed with setting up the Control Panel’s password.  You will need this to log in to the Cloud Panel. Ensure to meet all the requirements for this secure password. I also recommend creating complex passwords and saving them in the Password Manager to prevent cyber threats.

Then click Continue.

set the server's Name and password

Here, we will set the server’s Name and password. You can change this default name to anything you want, but if you still can’t think of one right now, just skip and change it later.

Set a strong server password and make it different from the Control Panel’s to prevent data breaches. Hit Save and Continue.

Finish setting Up

That’s it. We are done with the server initial configuration. Review the information here and click Finish Setup if everything is right. Note that the process can take several minutes to finish. Once it’s over, go back to each panel where we can see the VPS main dashboard like this.

VPS Main Dashboard

Here, you can see the general overview of the VPS, access the command line interface, renew or upscale the plan, and apply various server configuration settings. 

AI Assistant Beta

If you need quick help changing your server’s settings, access our AI Assistant tool through this menu. It can answer any questions you have about configuring your VPS. 

AI assistant

Simply input your prompt here and let the AI tool guide you. That said, remember that AI tools may produce inaccurate information, so always use it cautiously.

Pointing Your Domain to VPS

For your domain to work with VPS hosting, you need to point the domain to your server. If not, your website won’t be accessible to the public. Pointing your domain name also lets you enable custom email for your VPS.

While there are several ways to update this DNS configuration, let’s do the easiest one by changing DNS A-records.

Domain DNS

Access each panel and go to Domains. The domain we bought earlier will be shown here. Select the domain name and click DNS Name Servers on the sidebar. 

Domain DNS Nameserver

Go to the DNS Records tab. Delete the existing A-records containing ADD, www, or Cloudflare Resolve 2. Skip this step if there’s none.

Add A Record

Then, add two new A-records by selecting A for both lists under Type. Enter ADD and www under Name. Fill in your VPS IP address, which you can find on each panel under Points.

Finally, keep the TTL default value of 14400.

After pointing your domain name to the server, wait for the DNS propagation to finish. This may take up to 24 hours. To be sure, you can check the propagation status by visiting whatsmydns.net.

DNS propagation checker

Type your domain name here, choose NS from the drop-down menu, and hit Search. You’ll see a green checkmark if the propagation process has been completed.

Install WordPress

You can install WordPress on VPS using SSH access or a control panel for an easier process. We will go through the latter option using CloudPanel that we set up earlier.

Panel Access

The login URL and credentials will differ depending on the control panel. You can check them by navigating to the Panel Access tab on the dashboard.

Click this login URL to access CloudPanel.

SSL not Install

Since we haven’t installed an SSL, the browser may detect this connection as not secure. That’s alright; let’s continue the process, as we will install SSL later.

admin panel

Fill in the username with admin as shown on each panel and enter the control panel password we set before.

Cloudpanel New website

Once logged in, click Add Site and choose Create a WordPress Site. Complete all the fields on the page, change the passwords if you want or directly add these default ones to your password manager. The Name you fill in the Site User field is an SSH user.

All files will be stored in the home directory. Click Create and wait for the process to finish. That’s it; WordPress is now installed on your server.

save all the credentials

Save all these credentials in your password manager, as you may need them along with your website-building journey.

Installing an SSL

An SSL certificate encrypts the data exchanged between your website and visitors’ browsers. In other words, installing SSL keeps your data secure.

Note that you can only perform this step once your domain has successfully propagated.

manage SSL

With CloudPanel, you’ll get a self-certified SSL by default. To check that, click Manage and go to the SSL TLS tab.

SSL tab

Click this action button to add a free SSL certificate from Let’s Encrypt. It is provided for free from CloudPanel.

install SSL

After that, add the domain names and click Create and Install to issue the certificate. If your website requires another paid SSL certificate, you can also import and install it using the same action button.

Accessing Your WordPress Site

Login wordpress admin panel

Now, we are all set with the website configuration. It’s time to finally design the WordPress website from the admin dashboard. To access, add slash wp-admin to your domain URL. Type the WordPress credentials you saved earlier and click Log In.

Once you get in, you can start designing by picking a theme, adding plugins, and customizing your website as you want.

If you need a comprehensive guide to build a WordPress website from scratch, Here is the link.

So, that’s how you install WordPress on VPS. Feel free to leave your questions in the comments below.


Leave a Reply

Your email address will not be published. Required fields are marked *