Skip to content

Instantly share code, notes, and snippets.

@kevinsmith
Created September 22, 2010 04:29
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 kevinsmith/591140 to your computer and use it in GitHub Desktop.
Save kevinsmith/591140 to your computer and use it in GitHub Desktop.
/*
| This is not the full config file, but the relevant parts that need to be
| added in order to make it dynamic between servers. This file's set-up was
| inspired by Matt Weinberg's fantastic article on EE Insider:
| http://eeinsider.com/articles/multi-server-setup-for-ee-2/
|
| I'd like to think I've tweaked it a bit to improve it.
|
| Variables defined here will override anything submitted through the CP,
| so you can be sure these take top priority. Be sure to remove the 'cp_url',
| 'debug', and 'base_url' lines from your config. They'll be re-defined by
| this config file. Again, read Weinberg's article for full instructions.
| Be comfortable modifying the config file before pushing anything to a
| production server!
*/
$config['app_version'] = '210';
$config['install_lock'] = "";
$config['license_number'] = ";
$config['doc_url'] = "http://expressionengine.com/user_guide/";
$config['is_system_on'] = "y";
$config['site_label'] = 'Site Name';
$config['cookie_prefix'] = '';
$config['hidden_template_indicator'] = "_"; # Use underscore instead of dot
$config['save_tmpl_revisions'] = "n";
$config['autosave_interval_seconds'] = "0"; # Disabling entry autosave
$config['allow_extensions'] = "y";
// END EE config items
// Dynamic paths for cross-server compatibility
$protocol = (isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") ? "https://" : "http://";
$base_url = $protocol . $_SERVER['HTTP_HOST'];
$base_path = $_SERVER['DOCUMENT_ROOT'];
$system_folder = "system"; # Be sure to change this!
$images_folder = "images"; # Change this is you have relocated your uploads dirs.
$images_path = $base_path . "/" . $images_folder;
$images_url = $base_url . "/" . $images_folder;
$config['index_page'] = "";
$config['base_url'] = $base_url . "/";
$config['site_url'] = $config['base_url'];
$config['cp_url'] = $config['base_url'] . $system_folder . "/index.php";
$config['theme_folder_path'] = $base_path . "/themes/";
$config['theme_folder_url'] = $base_url . "/themes/";
$config['tmpl_file_basepath'] = $base_path . "/" . $system_folder . "/templates/";
$config['emoticon_path'] = $images_url . "/smileys/";
$config['captcha_path'] = $images_path . "/captchas/";
$config['captcha_url'] = $images_url . "/captchas/";
$config['avatar_path'] = $images_path . "/avatars/";
$config['avatar_url'] = $images_url . "/avatars/";
$config['photo_path'] = $images_path . "/member_photos/";
$config['photo_url'] = $images_url . "/member_photos/";
$config['sig_img_path'] = $images_path . "/signature_attachments/";
$config['sig_img_url'] = $images_url . "/signature_attachments/";
$config['prv_msg_upload_path'] = $images_path . "/pm_attachments/";
// Debugging and performance
$config['show_profiler'] = 'n'; # y/n
$config['template_debugging'] = 'n'; # y/n
$config['debug'] = '1'; # 0: no PHP/SQL errors shown. 1: Errors shown to Super Admins. 2: Errors shown to everyone.
$config['disable_all_tracking'] = 'y'; # y/n
$config['enable_sql_caching'] = 'n'; # Cache Dynamic Channel Queries?
$config['email_debug'] = 'n'; # y/n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment