Skip to content

Instantly share code, notes, and snippets.

@mpezzi
Created May 2, 2012 18:39
Show Gist options
  • Save mpezzi/2579070 to your computer and use it in GitHub Desktop.
Save mpezzi/2579070 to your computer and use it in GitHub Desktop.
Standard Drupal Settings File
<?php
/**
* @file
* Provides settings.
*/
ini_set('session.gc_probability', 1);
ini_set('session.gc_divisor', 100);
ini_set('session.gc_maxlifetime', 200000);
ini_set('session.cookie_lifetime', 2000000);
// Configuration settings.
$update_free_access = FALSE;
$drupal_hash_salt = 'salt';
// Database settings.
$databases = array(
'default' => array(
'default' => array(
'database' => 'dbname',
'username' => 'dbuser',
'password' => 'dbpass',
'host' => 'dbhost',
'port' => '',
'driver' => 'mysql',
'prefix' => '',
),
),
);
// Memcache Environment Prefix
$conf['memcache_key_prefix'] = 'mcprefix';
require_once dirname(__FILE__) . '/conf.settings.inc';
require_once dirname(__FILE__) . '/memcache.settings.inc';
require_once dirname(__FILE__) . '/varnish.settings.inc';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment