Today I’ll start a series of posts on how I’ve set my virtual web server up and walk you through how to do the same. You should be comfortable using the command line, Linux systems, and SSH.
I work on a lot of web projects, and I needed a way to centrally host them without needed to configure a server each time. I wanted something that could host static sites, rails sites, and PHP/MySQL sites. I could have gone with a combination of hosting platforms, but I really wanted something that I had more control over, without running the server out of my home. The power in my apartment fluctuates enough that I can’t really be comfortable with hosting public projects here, even with a battery backup.
I decided on Rackspace for a few different reasons, not the least of which was their awesome ‘fanatical’ support. I started out by launching a new Debian Cloud Server. I chose Debian because of the ease-of-use of Debian systems, my familiarity, and my general move away from Ubuntu. Debian tends to be a stable, secure distribution for web hosting. Combine that with good backups and you’ve got a professional setup. Rackspace is cheap, but isn’t free, so you’ll need to pay monthly for the service. My server runs me about $20 a month, so find a few buddies and split the cost up.
The first step is to get yourself a username over at
Rackspace.com. Next, start up a new cloud
server by clicking the
Create Server button:
For this server, we’re going to use Debian 6 (or 7 if its out now) and 512MB of RAM. Honestly, I’m running a very thin server, it isn’t very powerful, and it works just fine. If your site has a million hits an hour, you probably shouldn’t be following this tutorial. For everyone else, this works just fine.
Go ahead and copy the password that’s shown and log in via SSH. You’ll
need to log in as
root@ip-address-here. Use the command
passwd to set
a new password. Make this long, complicated, and memorable, these are
your keys to the castle, it would be a shame if something happened to
And now you have a public server, ready to build things on. In the next posts of this series, I’ll walk you through virtual hosting, WordPress, OctoPress, and other essentials.
Other posts in this series: