Sites need web hosting to store data and make them accessible to you and those who land on your website. This can be done through a variety of hosting methods, but the one we’re going to focus on here is hosting a website on a virtual private server, or a VPS. It’s one of the most popular hosting types out there, so let’s dive into the reasons why.
While it may seem daunting, we’ll cover how to host a website on a Windows VPS and a Linux VPS and show you just how easy it is to do.
What is VPS web hosting?
If you’re excited to get your website up and running but you’re not sure which server to host it in, a VPS should be your first port of call. But what is VPS hosting, and how does it work in relation to hosting a website?
A VPS offers users their own virtual server space with resources that aren’t shared with anyone else. Essentially, this means each user has their own dedicated resources, such as CPU, RAM, and SSD space. It’s particularly useful if you run lots of websites, such as sites that need to accommodate high traffic volume or specific applications that need a lot of resources to run smoothly.
With VPS hosting, you get your own server space with the power and performance of a dedicated server, at a fraction of the cost. This is because you’re still technically sharing a server rather than renting a whole one to yourself, but unlike with shared hosting, your virtual splice of the server is completely isolated from other hosting customers. This means you can customise your VPS as you see fit and keep your resources to yourself – no sharing required.
Can you use a VPS for web hosting?
Yes. One of the best things about a VPS is that it provides dedicated resources to host a website on a virtual server. Many businesses choose to do this due to the flexibility it offers over things like SSD, RAM, CPU and other components. Plus, you can run multiple websites on the same VPS – with Fasthosts, our VPS include up to 99 IPv6 and 16 IPv4 addresses.
VPS web hosting vs shared hosting vs dedicated hosting
You might be thinking of choosing shared hosting or dedicated hosting to host your website instead of a VPS, but dedicated hosting, shared hosting and VPS web hosting services all have their pros and cons that need to be considered.
When it comes to shared hosting vs VPS hosting, shared hosting is great for smaller businesses looking for a cheaper alternative where resources are literally shared across all websites you manage – and between customers on the same server. However, with a VPS, you have greater control and can allocate more resources to selected websites to improve things like load speed and increased performance.
Plus, since shared hosting means you have to share resources across your server, one of your websites could incur downtime or slow loading speeds due to another site consuming more of the available resource.
When considering a VPS vs a dedicated server, your decision will mostly depend on your budget and whether the increase in resources is worth the much higher price tag of a dedicated server. A VPS will be powerful enough to handle small-to-medium-sized websites with ease, but if you own a large business with multiple high-traffic websites, the potential increase in revenue from top-performing sites could justify an upgrade to a dedicated server.
Should I move from shared hosting to VPS web hosting?
Are you currently hosting your website on a shared hosting plan? While there’s nothing inherently wrong with this, shared hosting can become less viable over time, especially if your website grows.
A VPS can house thousands of visitors due to the immense resources it provides for both users and admins. So if you’ve noticed that your site experiences more downtime, is slower due to higher traffic, or your bounce rate is much higher as a result of this, then it may be time to switch to a VPS.
Plus, if you plan on adding a shopping element to your site, then a VPS provides far more security and data privacy than shared hosting because you’re not sharing space with other hosting customers. This is particularly important for keeping sensitive information safe, as well as building trust with your customers.
Finally, you also need to consider the level of customisation you’re after. With shared web hosting, the web host is in charge of configuring server settings for all customers on the server, so you don’t have full control over settings in your server environment. This isn’t a huge problem for hosting beginners, but if you want to be able to directly manage resource allocation, updates, security settings and more, you’ll need a VPS. This is because your VPS is totally isolated from other customers on the same physical server, which means you’ll have full root access to configure settings in your isolated virtual environment without affecting anyone else.
However, since shared hosting is slightly cheaper and doesn’t require you to be an active participant in server customisation, it’s still a great choice for hosting beginners or those who only need a limited amount of resources. For example, if you just want to host a small personal blog, shared hosting can be a fantastic option.
When should I move from VPS web hosting to dedicated hosting?
If your site or sites are growing rapidly and starting to suffer from poor performance, this is a sign that you either need to upgrade your VPS or move from a VPS to dedicated hosting. Another reason to move could be that you need more security and data privacy from your server. Whilst a VPS is more secure than shared hosting, you’re still sharing a server and an IP address with other websites, which means your data may not be as private as you want. If your business deals with sensitive information such as healthcare, legal or financial data, you may need the total privacy of a dedicated server.
The major downside of dedicated hosting is that it’s much more expensive than VPS web hosting. Cheap VPS plans start from just a couple of pounds per month, but dedicated servers can cost anywhere from £50 to £300+ per month – or even more if you need a dedicated storage server for huge amounts of storage space. So dedicated hosting is typically only used by businesses with larger IT budgets and website profits that can justify the investment.
Why host a website on a VPS?
The pros of a VPS for web hosting are clear, but if you’re still not sure, here’s why you should host a website on a VPS.
1. It’s cheaper
Hosting your website on a VPS is a cheaper alternative than hosting it on a dedicated server, because you don’t have a physical server, but rather, a splice of a virtual one. Learn more about the cost of different web hosting options.
2. Resources are scalable
With VPS web hosting services, you can select how much CPU, RAM and other resources you need for specific sites. This means you won’t have to put up with slow speeds as a result of other websites needing the same resources – much like with shared hosting.
3. Enjoy better security
Hosting your website on a VPS provides further security measures, thanks to having full root access to make your own security amendments, integrate Plesk Obsidian, install SSL certificates, and much more.
4. Customise your server
As a VPS gives you full root access and offers possibilities to tailor to your heart’s content, you can customise your server to include apps on your VPS, software, additional security features and specific plugins for your websites to run as they should. Some other features you can opt in to for your VPS web hosting include:
- Site or data backup
- SEO tools
- Technical support
- Firewall set up
- Email hosting
- Additional security features
- Access to applications and other web tools
5. Uptime
Uptime is incredibly important when hosting your website on a server. Higher uptime means happy visitors who can browse your website without dealing with errors or slow speeds. A VPS almost always guarantees high uptime, which is why it’s a popular choice for hosting a website.
How to host a site on a VPS
Now that we know how hosting your website on a VPS could benefit your business, here’s a step-by-step approach to getting up and running.
1. Choose the right VPS
Before you set up a VPS for web hosting, choosing the right server is the foundation for successfully hosting your website. At Fasthosts, VPS hosting and web hosting is our speciality.
Here are some of the features you can enjoy with a VPS from a high-quality VPS host like Fasthosts:
- Top-of-the-line hardware, up to 8 vCPU cores, 24GB RAM, and 240GB SSD storage
- Root/Administrator access for maximum control over your server
- 99.999% uptime (check Fasthosts uptime for more information)
- Hosted in ISO 27001-certified data centres
2. Connect to your VPS
Assuming you have a Windows VPS web hosting plan, you can connect to it easily via the Remote Desktop tool. This will already be installed on your Windows OS, and you’ll just need administrator access.
- Click the start button on your computer and search for “Remote Desktop Connection”.
- Select the Remote Desktop application when it opens.
- Enter the VPS IP address you were provided with when setting up your hosting VPS with Fasthosts into the pop-up box.
- Input your username and password (also provided after your server was provisioned).
- Click connect, and now you’re an Admin to your Windows VPS.
We also cover connecting to a Linux VPS in our how to connect to a VPS guide. This guide covers the process in more detail, but let’s quickly discuss how to connect to a Linux VPS using the Secure Shell (SSH) communication protocol:
- Run a terminal application like PuTTY.
- Enter your VPS’s IP address.
- Establish the SSH connection and enter your root user credentials.
3. Setting up website hosting
Once you’ve logged into your server and you have bought a domain name, you’ll need to ensure that your DNS A records point to your new VPS IP address. Put simply, your DNS links a domain to the IP address of your server – much like linking a phone number to a person’s name. Read our ‘What is a DNS’ guide for more information surrounding how it all works.
4. Install and configure your web server
Download Apache for Windows by visiting the official Apache HTTP Server site and download the Windows version (or through ApacheHaus)
Installation
- Extract the downloaded Apache archive to a directory (e.g., C:\Apache24).
- Open Command Prompt as Administrator.
- Navigate to the bin directory inside the Apache folder:
- cd C:\Apache24\bin
- Install Apache as a service:
- httpd.exe -k install
- Load up Apache:
- httpd.exe -k start
If you want to check you’ve installed Apache correctly, just visit”http://localhost” or your VPS's IP address. Here, you should see the Apache default page.
To install Apache on a Linux VPS or other Linux distributions like Ubuntu, check the installation instructions on the Apache website to find the relevant commands you need to use.
5. Install your preferred CMS / or migrate existing site
Let’s say you want to use WordPress – here’s how you would do so (need to transfer web hosting? Read our how to transfer web hosting guide first before attempting this step):
- Download and install MySQL for Windows or Linux depending on which operating system you use (make a note of the root password, as WordPress requires a database to function)
- Install PHP for Windows or for Linux
- For a Windows VPS, you need to:
- Download PHP for Windows
- Extract the PHP archive into a directory (e.g., C:\php)
- Add the PHP directory to the System Path
- For a Linux VPS, you need to:
- Open your terminal
- Update your packages with the ‘sudo apt-get update’ command
- Upgrade your packages with the ‘sudo apt-get upgrade’ command
- Install PHP with the ‘sudo apt-get install php’ command
- For a Windows VPS, you need to:
- Download WordPress
- Go to the official WordPress site and download the latest version
- Extract the WordPress archive to your Apache document root
- Go to the official WordPress site and download the latest version
6. Set up your website on WordPress (or other CMS)
You’ll need to create a new database for WordPress via MySQL. From here, you should input your VPS IP address in your chosen web browser. Follow the WordPress installation wizard, inputting your database details when prompted (this is where your root password will come in handy).
7. Test your website
Take this time to set up and test your website to ensure it works. Here’s how you can do so in your web browser:
- Enter your VPS's IP address in the browser's address bar. It should look something like: http://192.168.1.1, where 192.168.1.1 should be replaced with your VPS's IP address
- We’d also recommend getting an SSL certificate for your site for security reasons
8. Point your domain name (via DNS) to your VPS to make it live
When you use Fasthosts, you’ll need to change the nameservers for your domain – this will affect all of your domain’s DNS records, so be sure to get this step right.
- Simply add an “A” record within your DNS settings. These changes can act fairly quickly, but if they don’t, please wait up to 48 hours.
- You can verify the changes are made when you visit your domain name web address in a browser.
- Finally, you’ll need to configure WordPress to your domain name. Go to Settings > General
- Ensure both the WordPress Address (URL) and Site Address (URL) fields are set to your domain (e.g., http://domainame.com or https://domainname.com).
Frequently asked questions about hosting a website on a VPS
Is a VPS good for website hosting?
Absolutely! VPS hosting offers dedicated resources and more privacy and control compared to shared hosting, helping you host your website with excellent speeds, uptime and overall performance. VPS hosting gives you scalable resources to host even high-traffic websites with ease. Plus, it’s much more affordable than dedicated hosting, making it more accessible for individuals or small businesses.
How many websites can I host on a VPS?
A VPS can host many websites. In fact, you can host as many as you want! However, you’ll have to work around RAM, CPU and SSD limits. Scaling your hosting VPS to increase resources is easy with us, meaning you can create more websites if they’re needed.
Can I host my WordPress website on a VPS?
Your VPS can host websites powered by a wide range of different content management systems, including favourites like WordPress, Joomla! and Drupal.
What else can I host on a VPS?
Want to know what to do with a VPS? If you’ve successfully hosted your website on a VPS but want to know what else you can do with it, here are some other things you can host:
- Gaming servers
- VPN
- VoIP
- Dev testing
- Apps
Just keep in mind that your VPS web hosting services will have a set level of resources, but these can be scaled up or down depending on your needs. If you intend to use the same VPS to host other apps and services such as those listed above, you’ll need to factor in how many resources you have to run all of these elements. The last thing you want is your site timing out or running slow, which can impact both SEO and your brand!
Do I need a control panel to host a website on a VPS?
It’s absolutely worth having a control panel when hosting a website on a VPS. One such control panel we use is Plesk on our VPS M and L packages. Plesk Obsidian (the latest version of Plesk) is a control panel used for managing websites and servers on both Windows and Linux-based operating systems.
When you're using Plesk on a VPS, it can help you set things up like the website's name, email, and more – which is great if you aren’t technically savvy, or simply want to streamline getting your business up and running as soon as possible. Plus, Plesk has lots of safety and performance checks to make sure your website runs smoothly, such as ‘SSL It!’, which helps you manage your websites' SSL certificates and ensures that all of your websites are secured. It’s worth noting its Restricted Access mode too – which allows you to grant additional users administrative control while preventing the use of potentially risky operations such as the shutting down of servers.
Plesk doesn’t stop there. If you have a WordPress site, Plesk can be used as a simple way to design websites if you're not into coding, and includes a marketplace with loads of add-ons.
How to be your own web host
How can you host your own website without relying on a third-party hosting provider? It’s possible to host a website completely by yourself, but it can be a lot more complicated and time-consuming. Rather than renting a server from a VPS host like Fasthosts, you would need to host your site’s files and data on your own hardware, such as a computer or a server you exclusively own. So you would need to purchase and maintain your own hardware rather than renting this service from a hosting provider. This will end up being more expensive for you because hosting providers can split the cost of their hosting infrastructure between many customers, whereas you would need to maintain your hardware, power, cooling equipment and all other server equipment by yourself.
One benefit of hosting a website completely by yourself is that you’ll get full control over your VPS software and hardware, allowing you to make any changes you want. However, with VPS web hosting services from providers like Fasthosts, you already get full root access to your VPS to fully customise your server environment. You don’t get access to the hardware itself, but this can be a very good thing as you won’t be responsible for costly and time-consuming hardware maintenance. Instead, you can leave this job to the hosting experts and focus solely on your website.
Interested in hosting a website on a VPS? Get in touch with our sales team today and they'll help you find the perfect hosting solution for your next project.