Skip to content

Instantly share code, notes, and snippets.

@khalib
Created June 26, 2015 23:17
Show Gist options
  • Select an option

  • Save khalib/a2a3b9867a721360dcac to your computer and use it in GitHub Desktop.

Select an option

Save khalib/a2a3b9867a721360dcac to your computer and use it in GitHub Desktop.
<?php
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => 'graphite_150623',
'username' => 'graphite',
'password' => 'graphite',
'host' => 'localhost',
'port' => '',
'driver' => 'mysql',
'prefix' => '',
),
),
);
$update_free_access = FALSE;
$drupal_hash_salt = 'k7w-JNqYKewtpDZTTsGQaEnpj65nuojY7XAuugBFyX8';
ini_set('session.gc_probability', 1);
ini_set('session.gc_divisor', 100);
ini_set('session.gc_maxlifetime', 200000);
ini_set('session.cookie_lifetime', 2000000);
$conf['404_fast_paths_exclude'] = '/\/(?:styles)\//';
$conf['404_fast_paths'] = '/\.(?:txt|png|gif|jpe?g|css|js|ico|swf|flv|cgi|bat|pl|dll|exe|asp)$/i';
$conf['404_fast_html'] = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>404 Not Found</title></head><body><h1>Not Found</h1><p>The requested URL "@path" was not found on this server.</p></body></html>';
# $conf['allow_authorize_operations'] = FALSE;
$conf['cache_backends'][] = 'sites/all/modules/contrib/memcache/memcache.inc';
$conf['cache_default_class'] = 'MemCacheDrupal';
$conf['cache_class_cache_form'] = 'DrupalDatabaseCache';
$conf['memcache_key_prefix'] = 'd7';
//$conf['memcache_servers'] = array('10.252.139.50:11211' => 'default',);
$conf['memcache_servers'] = array('localhost:11211' => 'default',);
$conf['theme_default'] = 'learn';
$conf['image_allow_insecure_derivatives'] = TRUE;
// On Acquia Cloud, this include file configures Drupal to use the correct
// database in each site environment (Dev, Stage, or Prod). To use this
// settings.php for development on your local workstation, set $db_url
// (Drupal 5 or 6) or $databases (Drupal 7) as described in comments above.
if (file_exists('/var/www/site-php')) {
require('/var/www/site-php/csmgraphite/csmgraphite-settings.inc');
}
ini_set('memory_limit', '1024M');
error_reporting(E_ERROR | E_WARNING | E_PARSE);
ini_set('display_errors', 1);
set_time_limit(3600);
$_ENV['AH_SITE_ENVIRONMENT'] = 'prod';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment