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
- Log in to Rackspace Cloud Management Panel.
- Click Hosting.
- Select Cloud Sites.
- Select Add A Site.
You may refer to the official Rackspace document for additional information.
Create CloudSite Database
- Select the Features tab.
- Click Add.
- Enter the database name.
- Enter the database user name.
- Enter the database password.
- 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.
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
Then run the Drupal installer as usual.
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
- Log into your Rackspace account.
- Select the web site you wish to manage.
- Click the Features tab.
- Scroll down and click Add New Task.
- Enter in a custom name for the cron job.
- Choose whether or not to receive an e-mail update after the cron has run.
- Select command language (in this case, http).
- Copy and paste your external cron job (it will include your salt-hash).
- Choose how often you would like your cron to run.
- You may wish to review the official Rackspace Drupal installation document.
- xCache is already installed and available on Rackspace Cloud Sites. You are unable to make changes to the xCache configuration.