public
Last active

Sample EE1 config.php file

  • Download Gist
ee1_config.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
<?php
 
if ( ! defined('EXT')){
exit('Invalid file request');
}
 
$conf['app_version'] = "169";
$conf['license_number'] = "1234-1234-1234-1234";
$conf['debug'] = "1";
$conf['install_lock'] = "1";
 
 
$conf['stage_location'] = "Local .dev";
$conf['stage'] = "development";
 
switch ($conf['stage'])
{
// if remote MySQL available
case 'production':
$conf['db_hostname'] = "123.123.123.123";
$conf['db_username'] = "dbusername";
$conf['db_password'] = "dbp4ssw0rd";
$conf['db_name'] = "production_dbname";
break;
// if remote MySQL available
case 'staging':
$conf['db_hostname'] = "mdwebserver.com";
$conf['db_username'] = "dbusername";
$conf['db_password'] = "dbp4ssw0rd";
$conf['db_name'] = "staging_dbname";
break;
case 'development':
$conf['db_hostname'] = "localhost";
$conf['db_username'] = "dbusername";
$conf['db_password'] = "dbp4ssw0rd";
$conf['db_name'] = "local_dbname";
$conf['max_caches'] = "1";
break;
default:
$conf['db_hostname'] = "localhost";
$conf['db_username'] = "dbusername";
$conf['db_password'] = "dbp4ssw0rd";
$conf['db_name'] = "local_dbname";
$conf['max_caches'] = "1";
break;
}
 
$conf['db_type'] = "mysql";
$conf['db_prefix'] = "exp";
$conf['db_conntype'] = "0";
 
$conf['doc_url'] = "http://expressionengine.com/docs/";
$conf['cookie_prefix'] = "";
$conf['is_system_on'] = "y";
$conf['allow_extensions'] = "y";
$conf['multiple_sites_enabled'] = "n";
 
// Misc
$conf['hidden_template_indicator'] = "_";
$conf['protect_javascript'] = "n";
 
// EE tracking
// See: http://expressionengine.com/docs/general/handling_extreme_traffic.html
// disable_all_tracking disables all 5 other tracking vars. If using the last line,
// you can remove the previous 5.
// $conf['enable_online_user_tracking'] = 'n';
// $conf['enable_hit_tracking'] ='n';
// $conf['enable_entry_view_tracking'] = 'n';
// $conf['log_referrers'] = 'n';
// $conf['dynamic_tracking_disabling'] = '50';
$conf['disable_all_tracking'] ='y';
 
// Config Overrides
// See: http://expressionengine.com/wiki/Config_Overrides/
// See: http://expressionengine.com/wiki/Hidden_Configuration_Variables/
$conf['system_folder'] = "syst3mf0ld3r";
$conf['site_url'] = "http://${_SERVER['HTTP_HOST']}/";
$conf['cp_url'] = "http://${_SERVER['HTTP_HOST']}/${conf['system_folder']}/index.php";
$conf['tmpl_file_basepath'] = "${_SERVER['DOCUMENT_ROOT']}/_templates";
$conf['theme_folder_path'] = "${_SERVER['DOCUMENT_ROOT']}/themes";
$conf['theme_folder_url'] = "http://${_SERVER['HTTP_HOST']}/themes/";
$conf['captcha_path'] = "${_SERVER['DOCUMENT_ROOT']}/images/captchas";
$conf['captcha_url'] = "http://${_SERVER['HTTP_HOST']}/images/captchas";
$conf['avatar_path'] = "${_SERVER['DOCUMENT_ROOT']}/images/avatars/";
$conf['avatar_url'] = "http://${_SERVER['HTTP_HOST']}/images/avatars";
$conf['photo_path'] = "${_SERVER['DOCUMENT_ROOT']}/images/member_photos/";
$conf['photo_url'] = "http://${_SERVER['HTTP_HOST']}/images/member_photos";
$conf['sig_img_path'] = "${_SERVER['DOCUMENT_ROOT']}/images/signature_attachments/";
$conf['sig_img_url'] = "http://${_SERVER['HTTP_HOST']}/images/signature_attachments";
$conf['prv_msg_upload_path'] = "${_SERVER['DOCUMENT_ROOT']}/images/pm_attachments/";
 
?>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.