-
-
Save benjaminbixby/1360150 to your computer and use it in GitHub Desktop.
Sample ExpressionEngine 2.x Config File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
// EE Site | |
$config['app_version'] = "231"; | |
$config['license_number'] = ""; | |
$config['install_lock'] = ""; | |
$config['is_system_on'] = "y"; | |
$config['site_label'] = 'Sample.'; | |
$config['cookie_prefix'] = ''; | |
$config['allow_extensions'] = "y"; | |
$config['hidden_template_indicator'] = "_"; | |
$config['autosave_interval_seconds'] = "0"; | |
$config['doc_url'] = "http://expressionengine.com/user_guide/"; | |
// EE Debug | |
$config['debug'] = '1'; | |
$config['show_profiler'] = 'n'; | |
$config['template_debugging'] = 'n'; | |
$config['disable_all_tracking'] = 'y'; | |
$config['enable_sql_caching'] = 'n'; | |
$config['email_debug'] = 'n'; | |
// EE Templates | |
$config['save_tmpl_files'] = "y"; | |
$config['save_tmpl_revisions'] = "y"; | |
$config['tmpl_file_basepath'] = APPPATH . "templates/"; | |
// Dynamic Config | |
$env = $_SERVER['SERVER_NAME']; | |
$config['env'] = $env; | |
$protocol = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http"); | |
$base_url = $protocol . "://" . $_SERVER['HTTP_HOST']; | |
$base_path = $_SERVER['DOCUMENT_ROOT']; | |
$system_folder = "sy5st3m"; | |
$images_folder = "images"; | |
$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 . "/"; | |
$config['theme_folder_path'] = $base_path . "/themes/"; | |
$config['theme_folder_url'] = $base_url . "/themes/"; | |
$config['avatar_url'] = $images_url . "/avatars/"; | |
$config['avatar_path'] = $images_path . "/avatars/"; | |
$config['captcha_path'] = $images_path . "/captchas/"; | |
$config['captcha_url'] = $images_url . "/captchas/"; | |
$config['photo_path'] = $images_path . "/member_photos/"; | |
$config['photo_url'] = $images_url . "/member_photos/"; | |
$config['prv_msg_upload_path'] = $images_path . "/pm_attachments/"; | |
$config['sig_img_path'] = $images_path . "/signature_attachments/"; | |
$config['sig_img_url'] = $images_url . "/signature_attachments/"; | |
$config['emoticon_path'] = $images_url . "/smileys/"; | |
// CI Config | |
$config['uri_protocol'] = 'AUTO'; | |
$config['language'] = 'english'; | |
$config['charset'] = 'UTF-8'; | |
$config['subclass_prefix'] = 'EE_'; | |
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\\-'; | |
$config['enable_query_strings'] = FALSE; | |
$config['directory_trigger'] = 'D'; | |
$config['controller_trigger'] = 'C'; | |
$config['function_trigger'] = 'M'; | |
$config['log_threshold'] = 0; | |
$config['log_path'] = ''; | |
$config['log_date_format'] = 'Y-m-d H:i:s'; | |
$config['time_reference'] = 'local'; | |
/* End of file config.php */ | |
/* Location: ./system/expressionengine/config/config.php */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
$active_group = 'expressionengine'; | |
$active_record = TRUE; | |
if ($_SERVER['SERVER_NAME'] == "local") { | |
$db['expressionengine']['hostname'] = "localhost"; | |
$db['expressionengine']['username'] = "root"; | |
$db['expressionengine']['password'] = "root"; | |
$db['expressionengine']['database'] = "database"; // Local | |
} | |
elseif ($_SERVER['SERVER_NAME'] == "dev.domain.com") { | |
$db['expressionengine']['hostname'] = ""; | |
$db['expressionengine']['username'] = ""; | |
$db['expressionengine']['password'] = ""; | |
$db['expressionengine']['database'] = ""; // Dev | |
} | |
elseif ($_SERVER['SERVER_NAME'] == "staging.domain.com") { | |
$db['expressionengine']['hostname'] = ""; | |
$db['expressionengine']['username'] = ""; | |
$db['expressionengine']['password'] = ""; | |
$db['expressionengine']['database'] = ""; // Staging | |
} | |
elseif ($_SERVER['SERVER_NAME'] == "domain.com") { | |
$db['expressionengine']['hostname'] = ""; | |
$db['expressionengine']['username'] = ""; | |
$db['expressionengine']['password'] = ""; | |
$db['expressionengine']['database'] = ""; // Production | |
} | |
else { | |
$db['expressionengine']['hostname'] = ""; | |
$db['expressionengine']['username'] = ""; | |
$db['expressionengine']['password'] = ""; | |
$db['expressionengine']['database'] = ""; // Fungus the Bogeyman | |
} | |
$db['expressionengine']['dbdriver'] = "mysql"; | |
$db['expressionengine']['pconnect'] = FALSE; | |
$db['expressionengine']['dbprefix'] = "exp_"; | |
$db['expressionengine']['swap_pre'] = "exp_"; | |
$db['expressionengine']['db_debug'] = TRUE; | |
$db['expressionengine']['cache_on'] = FALSE; | |
$db['expressionengine']['autoinit'] = FALSE; | |
$db['expressionengine']['char_set'] = "utf8"; | |
$db['expressionengine']['dbcollat'] = "utf8_general_ci"; | |
$db['expressionengine']['cachedir'] = APPPATH . "cache/db_cache/"; | |
/* End of file database.php */ | |
/* Location: ./system/expressionengine/config/database.php */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment