Configure a CentOS 6.4 Web Server on Rackspace

Updated for CentOS 6.5.

Before you can begin configuring your server, you'll first need to create a new server instance using the Rackspace cloud control panel. We're using CentOS 6.4 in this tutorial. Make note of the password — it will only be shown once! After the server is finished building, make note of the IP address as well. With the IP address and password in hand, we're ready to get started. For this example we'll assume that the IP is

Open your terminal and let's SSH to the server so we can begin:

$ ssh root@

You may receive a security warning about the RSA key. If so, type yes and then hit enter. When prompted, enter your password. You should now be logged in to the server and ready to get started.

Next, let's give our server a unique name. It can be anything:

$ echo "HOSTNAME=plato" >> /etc/sysconfig/network
$ hostname "plato"

Now add a fully qualified domain name in /etc/hosts. You'll probably want to use your hostname plus your primary domain name, like so: plato
# you may also wish to add your ipv6

Be sure to add an A record to your DNS that points to your server's IP address.

Finally set the server timezone. We'll use UTC time:

$ ln -sf /usr/share/zoneinfo/UTC /etc/localtime

Next Steps

  1. Securing the Server
  2. Installing Packages
  3. Starting the Server
  4. Apache Virtual Hosts
  5. Postfix Email Forwarding


Most Recent


March 2016 (1)
January 2016 (1)
September 2015 (1)
May 2015 (1)
April 2015 (1)
March 2015 (1)
February 2015 (2)
January 2015 (5)
September 2014 (2)
August 2014 (4)
July 2014 (1)
March 2014 (1)
November 2013 (3)
September 2013 (3)
July 2013 (6)
June 2013 (1)
May 2013 (1)
March 2013 (2)
February 2013 (3)
January 2013 (4)