VPS (Virtual Private Server) vs Shared vs Dedicated
Outgrown shared hosting? Under-using dedicated? Considering leaving managed to save costs? Need a custom solution? Or just want to set up your own virtual private server at a reasonable outlay?
So you’re considering VPS? But what is it, what’s the difference between managed and unmanaged and how does it compare with shared or dedicated hosting?
In this introductory VPS guide we’ll weigh up those differences, considering what to look for in a VPS solution, both managed and unmanaged.
Setup Unmanaged VPS: The Ubuntu-Nginx Guide
Take your virtual private server from zero to hero
.. from blank box to cute-as server ..
with this easy-to-follow copy/paste guide.
22+ parts with video, here’s the index.
What is a Virtual Private Server (VPS)?
According to Wikipedia…
“A virtual private server (VPS, also referred to as Virtual Dedicated Server or VDS) is a method of partitioning a physical server computer into multiple servers such that each has the appearance and capabilities of running on its own dedicated machine. Each virtual server can run its own full-fledged operating system, and each server can be independently rebooted.”
With a VPS, essentially, you can:-
- have root access, to build your own distribution, whether for:-
-
- a website or blog
- multiple sites and/or blogs
- a mail server (integrated or standalone)
- data storage (video/backup etc)
- a proxy server for privacy & security
- a slew of other web applications
- have managed or unmanaged hosting, as with a dedicated server. An unmanaged VPS is inexpensive and for most of us, it’s all you need.
VPS vs Dedicated?
A dedicated server is where you occupy the entire, unpartitioned computer. Like VPS, it can be managed or unmanaged or, put it another way, fully or partly supported. If you have a whopper site that ratchets up heavy processing, with many hundreds of thousands of database requests per day, you need a dedicated plan. Then again, many webmasters took the dedicated route when VPS was barely buzzword, and they can be high on costs, low on resources, and ripe for rightsize.
Also, poorly supported or low-budget dedicated boxes are less powerful than many VPS options. As is the case between poor VPS providers and quality shared servers, there is a lot of cross-over. Think Venn diagram. Here again, there is potential for many sites to move, improving on performance while saving on costs.
For sure, if you don’t have a huge CPU requirement but do need lots of RAM, then a VPS is an option and, particularly for unmanaged, heaps cheaper.
For some more technical pointers on the cross-over between dedicated and VPS, Scott Yang has an excellent article at HostingFu which is well worth a read, considering things like burstable CPU and I/O, redundant storage, and even the more eco-friendly VPS option. One point I’m pinching from Scott, because everyone hates downtime…
The VPS is generally better managed, even when it isn’t ‘managed’.
That’s arguable – it’s case to case – but if you have two web hosts, one with a bunch of VPS clients on a partitioned computer, the other with a single client on a dedicated box, which has the bigger incentive to maintain the machine? And with VPS, the virtualisation software has to be maintained anyway.
So what about a Shared Server?
With shared you occupy a server with hundreds of other sites and, for your site to perform well, rely on the others not to be overly demanding. They tend to have lots of goodies, most of which you’ll never use, slowing down the server. The again, they are the closest to a point-and-click solution, with a comprehensive control panel and webmail, and are cheap as chips.
.. So they’re great for startups. And often great for mid-sized sites too. But..
While there are those who sing the praises of their shared server web host, there are others that have problems, such as slow-to-dead-slow support. If you have an uncomplicated site, requiring few database queries per second, even with quite a lot of traffic, they can be a good option. THat is, until something goes wrong and you open a support ticket: then, all bets are off.
For example, I used to be a reseller for Lunarpages, and would still recommend them, tentatively, for simple sites with a small database, else little traffic. But for more demanding websites, no way. vpsBible’s sister site Guvnr.com, for example, with a growing database, the resource-intensive WordPress platform, various Web 2.0 scripts, expanding traffic and the occasional Digg, outgrew shared quite quickly. (Which led to me researching my own VPS options and, later, to writing this VPS stuff.)
The VPS Downside?
Whereas with many shared hosts you get unlimited space and transfer (or do you?*), with VPS, generally, you only get a set amount of each, although plans are expandable. Do you really need “unlimited” space and transfer?
These days, for most of us, the key item we need to host, other than a website’s core files, is the database. Video can be linked, say, to Youtube or Vimeo; images to, say, Flickr or Photobucket; with other assets similarly offloaded. Email can be POP-ped or IMAP-ped to your local machine (which apart from saving server space is also less demanding on your server resources than using SMTP) or you can use Google Apps, which is what I do to direct the maximum server resource to my sites.
So for many a limited server space is not so big a deal, after all, however good it sounds.
* In practise, that’s a red herring. What the cheap hosts don’t advertise is the limited number of database queries their plans tend to offer, and that is far more important for most website requirements. If you want to find out more about that, I’ve written about it here.
Managed vs Unmanaged VPS?
With a managed virtual private server, the definition varies from company to company, as is the case with dedicated hosting. Support will tend to perform core updates of, say, Linux, Apache, MySQL and PHP, and likely will perform backups, and may even move your site for you. You would have to shop around, and pay extra, to find advanced options such as the Nginx web server (which benchmarks as a faster web server than Apache).
With unmanaged, you get a blank partition on a hard drive, a power cord and a network cable, plus a control panel with varying number of options. Plus maybe a wiki, some docs and a forum, and Google. And hey, me too
Unmanaged isn’t for the faint-hearted, even with clear, copy and paste tutorials. But if you find the time to invest in your solution, it will be less expensive and more powerful than the managed option, and fully customisable.
Follow the vpsBible documentation and you’ll learn that, say, to update your Linux server operating system is literally as simple as logging into the command line interface and typing “upgrade”.
Alternatively, have the best of both worlds; your customised unmanaged VPS plus a freelance administrator. Someone like me can set up your box for optimal performance, then manage your sites and content as well as the server.
Multiple Virtual OS Deployment and Xen
VPS providers need special software to deploy multiple virtual systems, partitioned within a single computer.
Whether for managed or unmanaged, Xen is widely considered the best performer. It’s reckoned to manage the multiple systems, from the single box, with close-to-native performance.
Here’s a handy list of Xen-powered VPS providers.
Why Linode? (IMHO)
Although the vpsBible tutorials can be applied to any Linux server build, whether unmanaged dedicated, VPS or even from under the stairs at home, I example VPS provider Linode quite a bit. I’m not a reseller, so why? *
* EDIT: Hands up, I am now. 8 months after writing the first draft of this I became an affiliate to subsidize my server costs, not least so I could hire and test more servers for vpsBible.com. They’re pretty darn tight, I’ll have you know, and pay no commission
Then again, if you sign up through vpsBible, after three months I get a $20 credit for hosting. Please do sign through me .. the result will be more tutorials and benchmarking here at vpsBible.com. Right, you can carry on now ..
Through my research, two key names in the unmanaged VPS market came up time and again – Slicehost and Linode – so let’s compare those:-
- both are Xen-powered
- both have quality wikis and forums but Slicehost has more thorough in-house documentation
- Linode offers both 64 and 32bit Linux distributions, Slicehost has only 64bit **
- for the same money, Linode offers more RAM, transfer and space ***
- compared to Slicehost’s one datacenter, Linode has a choice of five, four Stateside and one in London ****
** 64bit operating systems use significantly more RAM than their 32bit counterparts. I wouldn’t run my mid-sized sites on 64bit. This makes for interesting reading.
*** Linode offers more RAM, transfer and space, for the same price. Respectively, 360MB, 200GB & 18GB as opposed to 256, 100 & 10.
**** Linode’s Newark, New Jersey, data center is handy for sites with core traffic both Stateside and in Europe. That’s the one I use.
With most VPS plans you can pay monthly with no setup nor cancellation fees, and no contract. Both Linode and Slicehost basic plans cost $20 per month.
So, particularly due to the 32bit option and the extra RAM, transfer and space, Linode won me over and I bought a basic plan to host this and other sites and blogs. Had Linode not existed, for the record, from the remaining field, I would have signed with Slicehost.
You can find some great comparisons of these two and other VPS players via the almighty Google. Here’s perhaps the best benchmark post, from David Welton’s blog, and is well worth a read.
What’s a Linode/Slice?
These folks call their virtual private servers, respectively, Linodes and Slices. So your Linode is your Slice is your VPS is your dedicated bit of the server. Geddit?
A Bit More Spec
Here are the basic bullets for the two VPS front-runners, which can be weighed against other providers. Linode and Slicehost have other features detailed on their sites.
- 4-core servers running Xen virtualization instances
- Full SSH (that’s encrypted/tunnelled data flow) root access and rebooting
- Wide choice of Linux distributions
- Dedicated IP address with others available
- Private IPs for inter-linode/slice communication
- HA & clustering support
- Guaranteed CPU share
- Reserved RAM
- Control panel for reboots, software installs, stats etc
- Managed DNS with API (very handy)
- Ajax console access – if you lock yourself out of your command line interface
VPS vs Shared vs Dedicated
What is best for you will depend on your requirements, and whether to go managed or unmanaged will depend on how hands-on you want to be. Hopefully this article and links therefrom have been handy. If you want specific advice, or have some to give, please visit the forum.
Next Up
OK, that’s an introduction to VPS, comparing with shared and dedicated hosting, and with a few tips as to what to look for. In Set Up a VPS Linux Distribution we’ll get stuck in, setting up the blank box with a Linux distribution, and I’ll walk you through a typical VPS control panel.
Here’s the complete series index. I really hope you enjoy it. Drop by that forum and let me know.
Setup Unmanaged VPS: The Ubuntu-Nginx Guide
Take your virtual private server from zero to hero
with this easy-to-follow copy/paste guide.
“My local PC runs Windows” Show me for Linux
“My local PC runs Linux” Show me for Windows
22+ parts with video, here’s the index ..
-
Setup Unmanaged VPS: The Ubuntu-Nginx Guide
Introducing vpsBible’s how-to guide for setting up a super-charged unmanaged VPS featuring Ubuntu and Nginx.
-
VPS (Virtual Private Server) vs Shared vs Dedicated
Before getting stuck in, let’s compare the web host types in detail and weigh up the differences between managed & unmanaged VPS.
-
Set Up a VPS Linux Distribution
Opening a VPS hosting account, we’ll choose, configure & launch a Linux server ‘distribution’.
-
Set Up Command Line Interface (CLI) using PuTTY
Now we’ve got a server to play with, we’ll connect to it, using the ’ssh’ protocol for a super-secure link.
-
Create a Linux User & Set Permissions
Initially you’ve logged into your remote Linux machine as ‘root’. We’ll add you as a user now, with root or SuperUser permissions.
-
Encrypt Data with OpenSSH & Auto-Login with PuTTY
Now we can use ‘authentication keys’ to shore up our connection while simplifying login to an automated, password-free yet secure process.
-
Harden the Secure Shell (SSH) & Create a Firewall
The final security step: galvanizing the OpenSSH protocol and setting up an ‘iptables’ firewall. Now the server is rock ruddy solid.
-
Edit bashrc for User-Friendly Linux, plus System Updates
We use the terminal a whole lot so let’s cut ourselves a break and create some command shortcuts, then update the server.
-
PHP5, MySQL and Xcache (for Platforms like WordPress)
We have our foundation, let’s lay some bricks: PHP for server-side web applications, Xcache to speed things up & MySQL for databases.
-
Add a Domain Zone to Your VPS
To make your server aware of yourDomain.com you’ll need a few ‘DNS’ records. Damn this is simple I’m practically asleep!
-
Prepare Linux Server for Email with Postfix
In order to send and receive email from our web applications we’ll install some software and tweak the ‘RDNS’ record.
-
Nginx (better than Apache) Web Server
OK I woke up .. let’s install this supersonic web server, tweaking its file structure & adding default configuration files.
-
Setup FileZilla for Secure FTP (SFTP)
There’s FTP, and then there’s ‘Secure FTP’. We’ll set up FileZilla using SFTP – and those authentication keys – for secure file transfers.
-
Serve Multiple Sites & Blogs with Virtual Hosts
We want a website folder structure, some permissions, some site-specific configuration files and, hey, we’ll hook up ‘FastCGI’.
-
Adding Sub-Domains with Nginx
Need a sub-domain? Here’s how to add www.sub.domain.com with an ‘A record’ and a configuration file. (I’ll allow you to skip this bit.)
-
Integrate A CMS Like WordPress, WP MU, Drupal etc
For those of you wanting to use a specific content framework, such as a CMS, blogging or forum software, pop in here and we’ll sort that out.
-
Configure phpMyAdmin for Nginx to Maintain MySQL
Rather than have to crunch databases via the command line, we can make life easier by adding this splendid tool to manage them.
-
Google Apps for Domain-Specific Email
GA’s free Standard Edition for catchall webmail – POP-ping or IMAP-ped to your desktop client – saves precious server resources for your webs.
-
Moving Day! How to Move Your Blog or Site
Nearly there. Here’s the web site or blog migration guide, relocating to your VPS with minimal or no downtime.
-
Appendix 1a: Nginx Control Panel
You’re migrating shared-to-VPS and want a GUI like cPanel? No you don’t, not after you read this! What’s more, you don’t need one either.
-
Appendix 1b: Nginx Control Panel Workarounds
For every control panel module there’s an equivalent terminal command. They’re all linked from here so, hey, no excuses!
-
Appendix 2: Add Web Sites Nginx Cheatsheet
Once you’ve set up your first site, adding more gets easier. Especially when you can refer to this. (Let’s face it, I’m just too good to you.)
Got a Question? Want to Comment?
This site has no comments system. We've got a better system!
Please use the link at the top of the post and goto this topic's forum thread:-
- to help build community
- for a superior knowledge base
- to keep info in one place, not diluted between forum & comments.
For those posts ported from Guvnr.com (pre-Feb/2010), archive comments remain.
Handy info from these comments is in the process of being ported to the forum and attributed to the original author.
If you think this idea sucks, let me know.
Thank you.




















Topics about Names » Archive » Set Up Unmanaged VPS (4 Newbies) - Part 1: VPS (Virtual Private Server) vs Shared vs Dedicated April 6th, 2009 at 8:35 pm
[...] Web Design Spain put an intriguing blog post on Set Up Unmanaged VPS (4 Newbies) – Part 1: VPS (Virtual Private Server) vs Shared vs DedicatedHere’s a quick excerptOutgrown shared hosting? Under-using dedicated? Considering leaving managed to save costs? Need a custom solution? Or just want to set up your own server at a reasonable outlay? So you’re considering VPS, isn’t everyone? But what is it, what’s the difference between managed and unmanaged and how does it compare with shared or dedicated hosting? In this introductory guide to VPS – Set Up Unmanaged VPS (4 Newbies) – Part 1: VPS (Virtual Private Server) vs Shared vs Dedicated – we’ll wei [...]
setup an unmanaged vps - Eric Malloy June 7th, 2009 at 8:38 pm
[...] Set Up Unmanaged VPS (4 Newbies) – Part 1: VPS (Virtual Private Server) vs Shared vs Dedicated Share and Enjoy: [...]
eric malloy September 3rd, 2009 at 11:55 am
Hi Guvnr, is there any way to pump out a tutorial to set up nginx with php-FPM .. I’ve been experiencing some memory issues with fastcgi and lag time.. any suggestions?
e
the_guv September 16th, 2009 at 8:30 pm
@Eric .. that is something I plan to do, but I can’t promise it for a while yet as I’m a bit backlogged at the mo.
Have you followed the Xcache part of the tut? That’s pretty important.
Like you site. Might have to try that Salabat Ginger Tea!
Ricardo Lopez September 24th, 2009 at 10:52 pm
Hi Guv, searching for a good VPS Service I end up in your excellent site, it has a lot of info some of it I already know and some not.
I’m willing to drop off my Home SSH Server (A Dell Inspiron 6400 Latop with Ubuntu Server :S), and turn to a nice, cheap, and unmanaged VPS Server. So here is the thing do you recommend me Linode? I was looking some other sites and investigating with my friend that already have a VPS server and Lindore seems to satisfy my needs (for now).
So, what do you think??
Greetz from Mexico!
Riky
the_guv September 25th, 2009 at 7:31 pm
@Ricardo .. muchas gracias tio!
For what it is worth, here is my opinion, having thoroughly researched the market: the top 2 players in the VPS market are Slicehost and Linode, and I don’t think you could go wrong with either. Both run Xen virtualisation software and that is a must. Both start great packages at $20/month.
Personally, I prefer Linode because they do offer a little more bang for your buck, at least with the basic package which suits my needs .. they offer 18gB storage and 360mB RAM as opposed to Slicehost’s 12 and 260. I THINK .. that may have changed at Slicehost, so check that.
Both communities are superb. Linode has one other thing I like, a choice of 4 datacenters in teh US, and I chose Newark to be close as poss to the Atlantic pipe. Their support guys have been brilliant with me, helping to support this Bible by loaning me a VPS just to try to break, so that has helped everyone who has benefited from this Bible. Also, when I have ticketed support, (and FYI the server has had a problem once when it was crawling) they have been back to me within anything between minutes and about an hour.
Also – and I think this is really important when choosing any kind of host – check out the forums and see what the locals are saying, and how friendly is the community.
‘asta luego.
Ricardo Lopez October 2nd, 2009 at 1:55 am
Hola Guv, [update] just bought a 360 from Linode a few hours a go and well very happy, finished up the ubuntu install and all going smoothly.
Now the migration process of soporteregio.com from my old hosting service to this new one.
And also I just bookmarked your site its awesome, I do almost the same thing you do (on my site) but in spanish.
Thankyou for your dedication and well structured tutorials “ur da man”
Hasta luego, from Mexico.
Riky
the_guv October 6th, 2009 at 6:03 am
@Ricardo .. splendid .. for pete’s sake tell ‘em you came by way of the bible, maybe they’ll send me a bottle whiskey
.. that’s the same package i’ve got, btw.
like your site, Senor .. see you’re an ubuntan .. i’m just knocking up some Karmic guides right now .. installed that earlier, went pretty well. people gotta wise up, windoze is just not worth the hassle anymore. well, my 2c.
necesito practicar me espanol, escriberia(ish, damn spanglishy verbs) su pagina, er, mas, otra vez et al, pues, er, me cago en la leche!!!
viva ‘xixo.
Jerry November 13th, 2009 at 3:17 am
Thanks for this great tutorial. I did not actually do your exact setup but your tutorial guided me (for the most part) through a Debian 5 install. I am a newbie (again, for the most part) to Linux and your tutorial is of great value. This is the best step by step I’ve seen for any vps setup on any distribution I have seen. Keep up the great work!
the_guv November 13th, 2009 at 9:08 am
@Jerry .. big cheers to you. Now that is flattery .. pile it on
HOW-TO Set Up a Linux VPS Server for Newbies: VPS BIBLE - vpsBible February 10th, 2010 at 5:00 pm
[...] or Slicehost.com, or wherever else. I’d suggest you read VPS (Virtual Private Server) vs Shared vs Dedicated for some handy tips about choosing your unmanaged VPS provider, and to see if that really is the [...]