Community Documentation

Drupal on Rackspace Cloud Sites

Last updated January 23, 2013. Created by Shane Birley on February 17, 2012.
Log in to edit this page.

This document provides information about how to install and work with Drupal on the Rackspace Cloud Sites product. It covers setup, installation, and caching.

Create Cloud Site

  1. Log in to Rackspace Cloud Management Panel.
  2. Click Hosting.
  3. Select Cloud Sites.
  4. Select Add A Site.

You may refer to the official Rackspace document for additional information.

Create CloudSite Database

  1. Select the Features tab.
  2. Click Add.
  3. Enter the database name.
  4. Enter the database user name.
  5. Enter the database password.
  6. Select Finish.

The database will be created and may take a few moments for it to appear ready. Make sure you take note of the database user name, password, and hostname for the installation.

Configure .htaccess File

Before uploading your Drupal installation, it is good to prepare your .htaccess file. This will make your installation go smoothly. In your .htaccess file, scroll down to the PHP override section. It will look similar to what you see below.

Recommended settings are:

# PHP 5, Apache 1 and 2.
<IfModule mod_php5.c>
  php_flag magic_quotes_gpc                 off
  php_flag magic_quotes_sybase              off
  php_flag register_globals                 off
  php_flag session.auto_start               off
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_flag mbstring.encoding_translation    off
  php_value memory_limit                    128M
  php_value max_execution_time              60
  php_value upload_max_filesize             10M
  php_value post_max_size                   20M
</IfModule>

Then run the Drupal installer as usual.

Install Drupal

Log in to your new installation and run. Choose either default or minimal profiles (or any custom profiles you may have installed).

Create Cloud Sites Cron

  1. Log into your Rackspace account.
  2. Select the web site you wish to manage.
  3. Click the Features tab.
  4. Scroll down and click Add New Task.
  5. Enter in a custom name for the cron job.
  6. Choose whether or not to receive an e-mail update after the cron has run.
  7. Select command language (in this case, http).
  8. Copy and paste your external cron job (it will include your salt-hash).
  9. Choose how often you would like your cron to run.

Notes

Comments

where is your information about rackspace cloudsite

where is your information about rackspace cloudsite?

-----------
Drupal Services

GZIP not working with default HTACCESS

Another tip that might be of help to others. I noticed GZIP was not actually in use on any of Drupal 7 sites hosted on Rackspace Cloud Sites. After talking with support, we found a line to add to our HTACCESS that got it working.

I added this line to my HTACCESS and now our sites are testing as being GZIPPED :

AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript

Page status

About this page

Drupal version
Drupal 6.x, Drupal 7.x
Audience
Site administrators
Keywords
cloud, cloudsites, rackspace
Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.