Artificial Intelligence

Drupal 7 Deployment Checklist

This list makes sure that we covers our... Ahem, bases. This is an update to the blog post originally written by Dylan Tack, our Lead Drupal Engineer.

Filed under:

This list makes sure that we covers our... Ahem, bases. This is an update to the blog post originally written by Dylan Tack, our Lead Drupal Engineer.

Database logging row limit and Error Reporting ( admin/config/development/logging)
I have found the default row limit of 1000 can wrap quickly, leave you without vital debugging information when you need it most. The average row length is generally around 1kB, so even boosting this to 100,000 rows will still leave you with a manageable watchdog table.

On a production site, it's best to suppress on-screen error reporting by choosing Write errors to the log.

User registration settings ( admin/config/people/accounts)
The default value of Visitors can create accounts and no administrator approval is required is easily overlooked, and often undesired.
Disable devel modules admin/modules
Not only devel itself, but other other utilities (such as masquerade, trace, or coder) may have been installed that you wouldn't need on the production site. Leaving extra modules enabled can hinder the performance of your site, or even create security vulnerabilities if misconfigured.
Set a maintenance theme ( settings.php)
By default Drupal's Site off-line page uses the Minnelli theme. Switching this is a nice enhancement, in case you ever need to use the maintenance mode, or in the unfortunate event you experience unplanned downtime. In most cases your site's theme will work fine; just add $conf['maintenance_theme'] = 'mytheme'; to settings.php. You may also need to add a maintenance-page.tpl.php to your theme; if you're using Zen this is already done for you.
Confirm email settings
Often, placeholder email addresses will be filled in during development, and should be updated before deployment. I try to start with the correct addresses from the beginning when possible, but sometimes you don't have this information until later in the project's life. In addition to Drupal's global site_mail, addresses can be stored in a variety of places: The admin user's account, contact forms, webforms, ubercart, triggers, or CiviCRM settings.
For Zen users – disable theme registry rebuilding ( admin/appearance)
If you developed your theme using Zen, don't forget to switch off Rebuild theme registry on every page. This is a huge performance penalty.
Performance settings ( admin/config/development/performance)
The best performance settings depends on your site. Also, don't change cache settings at the last moment without thoroughly testing your site's features. Ideally, I like to finalize the cache settings about 2/3 of the way through a project, so that the final stages of development and testing are performed with cache settings that will match production. And if you don't aggregate your CSS, your site could look pretty strange in IE with it's set limit of number of stylesheets.
Redirect to/from 'www.*' ( .htaccess)
Drupal's .htaccess file contains an example RewriteRule showing how to redirect from to or vice-versa. Enforcing a single domain name is essential if your site uses SSL, and even with plain HTTP I like the consistency of a single URL.
Additionally, since the RewriteCond declaration is specific to a particular host, you can add multiple domains to the same .htaccess file, either for multi-site installs or for multiple testing / production host names.
Check /sitemap.xml
The defaults for the XML sitemap module exclude all content types, so your sitemap will look a bit empty until the settings are adjusted.
Check proxy settings
If your production server uses a proxy or load balancer, Drupal needs some additional configuration to accurately record remote IPs. This impacts error logging and some modules such as Mollom.
$conf['reverse_proxy'] = TRUE;
$conf['reverse_proxy_addresses'] = array(
Check $drupal_hash_salt
In your settings.php, $drupal_hash_salt needs to be set to a suitably random value. If the Drupal installer created your setting file, you'll be good to go. If not this value may be empty.

What are your favorite last-minute checks? Post them below!

Similar posts

Get notified on new marketing insights

Be the first to know about new B2B SaaS Marketing insights to build or refine your marketing function with the tools and knowledge of today’s industry.