Skip to content

Instantly share code, notes, and snippets.

@theodorosploumis
Created August 26, 2015 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theodorosploumis/ee6f4618de0a8d62b5db to your computer and use it in GitHub Desktop.
Save theodorosploumis/ee6f4618de0a8d62b5db to your computer and use it in GitHub Desktop.
Drupal 7.x local.settings.php
<?php
/**
* @file
* This is a local development configuration file.
*/
global $conf;
// Turn off Secure Pages. Secure Pages Module.
$conf['securepages_enable'] = FALSE;
$conf['https'] = FALSE;
// Stage File Proxy Configuration
$conf['stage_file_proxy_origin'] = 'http://pharmacademy.org';
// Stage file optional with securepages
// $conf['stage_file_proxy_origin'] = 'http://username:password@mysite.com';
$conf["stage_file_proxy_use_imagecache_root"] = FALSE;
$conf['stage_file_proxy_hotlink'] = TRUE;
// Turn off Caching.
$conf['cache'] = 0;
// Block caching - disabled.
$conf['block_cache'] = 0;
// Expiration of cached pages - none.
$conf['page_cache_maximum_age'] = 0;
// Aggregate and compress CSS files in Drupal - off.
$conf['preprocess_css'] = 0;
// Aggregate JavaScript files in Drupal - off.
$conf['preprocess_js'] = 0;
// Minimum cache lifetime - always none.
$conf['cache_lifetime'] = 0;
// Cached page compression - always off.
$conf['page_compression'] = 0;
// Turn off other caching.
$conf['css_gzip'] = FALSE;
$conf['javascript_aggregator_gzip'] = FALSE;
// Turn on all error reporting for local development.
error_reporting(-1);
$conf['error_level'] = 2;
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
@theodorosploumis
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment