How to set up VPS hosting?

VPS hosting is becoming a more and more popular choice among mid-level website owners who want to have more control over the activities on their website. The main idea here is that VPS hosting is created in order to minimize costs while allowing the users to retain full control over their sever and pay less in the process.

What Is VPS Hosting?

By theory VPS hosting gives you the ability to host your own site and also the files of it on a virtual device. This is not only a good choice when it comes to security and privacy, but also saves a lot of time it would otherwise take to configure and set a server. Furthermore, this type of porduct can be bought from companies that offer to give you a virtual space on their own server so that it can be private and easier for you to have full control without any “noisy neighbors” on the device, contrary to what most other hostings offer.

Why Choose VPS Hosting?

If you want to go for a dedicated hosting, you will eventually rent an actual server, which can be used however you deem to. With VPS hosting, the choice is all in a virtualized environment. This means that it is easier if you have a site with substancia traffic and want dedicated hosting based on your specific requirements for disk space, RAM and other parameters. This choice can save your hundreds of dollars that you would otherwise pay with a dedicated service.

Another key benefit is that VPS hosting aims to be somewhere in between shared hosting plans and dedicated ones by making flexibility and scalability a priority and making the process easy if you want to set up your site with your own OS and paremeters.

The main technology which makes this a reality is virtualization. Similar to software, like VirtualBox, the same principle goes here. You have the freedom to choose what you want on your server, if it is Apache, Windows, Linux-based OS or anything you so desire plus the software you want installed on it. You can also reboot your virtual machine, reconfigure it and other activities that would otherwise require physical access to it.

But the main reason to go for such service is the price that you will pay for it, which is more than shared hosting, but much less than dedicated would cost you.

How to set up VPS Hosting?

To set-up VPS hosting, you will need to first choose a hosting provider and purchase a VPS plan from them. Then, you need to configure your VPS server based on what you need it to do. Some companies can even do it for you, if you pay a setup cost and some even offer free setups, which is great, because you have a vast choice.

So if we have to create a general instructions on how to set up such a sevice, we can proceed by showing you the main general activities that you will need to do to make such a target a reality. Here we go!

Step 1: Choose a VPS hosting provider:

Choosing a provider can be difficult sometimes because different providers offer different extras. We hope the table below from our “Best VPS hosting companies in the USA” article helps you out with that, and if you are not sure who is who, you can always read their reviews at the following link.

Best VPS Companies


Editor Choice
2
3
4
5
6
7

GreenGeeks
Review

GoDaddy
Review

HostGator
Review

DreamHost
Review

A2 Hosting
Review

BlueHost
Review

InMotion
Review
Plan Price
Cheapest Plan
$10.00/mo
Cheapest Plan
$5.91/mo
Cheapest Plan
$19.95/mo
Cheapest Plan
$39.95/mo
Cheapest Plan
€21.20
Cheapest Plan
€16.12/mo
Cheapest Plan
$29.99/mo
Rating
User Rating
User Rating
User Rating
User Rating
User Rating
User Rating
User Rating
Storage
Storage
50 GB
Storage
20 GB
Storage
120 GB
Storage
30 GB
Storage
75 GB
Storage
30 GB
Storage
75 GB
RAM
RAM
2 GB
RAM
1 GB
RAM
2
RAM
1 GB
RAM
4 GB
RAM
2 GB
RAM
4 GB





Step 2: Learn how to login to your VPS via a SSH FTP protocol.

The FTP (file transfer) protocol that allows you to download, edit and upload data on your server. It can be very useful, but remember it is not a control panel for your server, just a way to access it. This is why you need to use SSH (Secure Shell) access. it will provie you with the needed power to connect to your server securely and set it up.

After you have registered with a web hosting company for a VPS plan, they will give you the following details:

  • Your root (admin) username.
  • Your server password.
  • Your own IP address of the server.

After you have set up this VPS, you can use programs, like PuTTY that will enable you to login to your server:

On this software, you have to select SSH and then enter your IP address and then after your are connected type in your Username and Password for root to login for the first time.

Step 3: Create a New User and secure it.

After you have logged in your server, you will see a command prompt where you have complete access to your server. In this command prompt, you should create a new user by running the folllowing commands. The second command will make him admin, using -aG sudo:

adduser theusername
# usermod -aG sudo theusername

Then, you can secure this account by setting up a password for it. This can happen with the PuTTy software. Simply click on the following link to access the PuTTY key generator, that will make sure that you generate a random SSH key which you will have to keep and remember. Simply open it and click on the “Generate” button.

After this, you can save the key and copy it from the Public key space that will be shown as a result from PuTTY. After this, you have to get back in the server by logging in with SSH and you IP and log in to your sudo username by using this command:

# su – theusername

Then, you should save your key on your sevrver using the following parameters:

mkdir ~/.ssh

chmod 700 ~/.ssh

nano ~/.ssh/authorized_keys

After the authorized_keys file is opened, simply paste your public key there and close it, after which type the following commands:

chmod 600 ~/.ssh/authorized_keys

exit

And lastly, you will need to disable your password authentication by running the following command:

sudo nano /etc/ssh/sshd_config

It will open file ssh_config and in it simply set PasswordAuthentication from Yes to a No, like shown:

PasswordAuthentication no

If you have done this right, you have successfully created and set up your first VPS server correctly. Now all that is left for you is to install whatever OS you so desire and also choose a Firewall for it. Good luck and we hope this helps!

We at howtohosting.guide always rely on user feedback. So if you have any questions regarding this guide, please write to use in the comments below and we will try to help.

Leave a Comment

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

Time limit is exhausted. Please reload CAPTCHA.