Skip to content

Instantly share code, notes, and snippets.

@tpitre
Created November 18, 2014 18:56
Show Gist options
  • Save tpitre/c70602765fbb5c4c8d22 to your computer and use it in GitHub Desktop.
Save tpitre/c70602765fbb5c4c8d22 to your computer and use it in GitHub Desktop.
Drupal: settings.php
<?php
/**
* The bulk of default.settings.php has been moved to
* sites/all/settings.common.php.
*/
/**
* Uncomment this to use Redis caching with default settings.
*/
# $conf['gc_redis_cache_enabled'] = TRUE;
/**
* Override file system permissions hardening.
*
* The System module will periodically check the permissions of your
* site directory to ensure that they are not writable by the website user.
* For sites that are managed with a version control system, this can cause
* problems when files in that directory (such as a "settings.inc" containing
* additional configuration) when the files are updated, as the user pulling
* in the changes won't have permissions to modify files in the directory.
*
* Remove the leading hash sign to disable permissions hardening.
*/
# $conf['ignore_site_directory_permissions'] = TRUE;
/**
* Automatically include common configuration for all environments. Place new
* configuration above this require to allow it to be overridden by the
* repository. Place configuration after to override what the repository
* suggests.
*
* We store this file in sites/all not just because it's for "all" sites, but
* to absolutely avoid any permissions issues with the sites subdirectory being
* set to read only.
*/
if (file_exists('sites/all/settings.common.php')) {
require_once 'sites/all/settings.common.php';
}
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => '',
'username' => '',
'password' => '',
'host' => 'localhost',
'port' => '',
'driver' => 'mysql',
'prefix' => '',
),
),
);
error_reporting(E_ALL);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
$conf['error_level'] = 2;
$conf['gc_membership_recurly_account_prefix'] = 'southleft-';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment