Skip to content

Instantly share code, notes, and snippets.

@masugadesign
Created September 22, 2010 14:14
Show Gist options
  • Save masugadesign/591742 to your computer and use it in GitHub Desktop.
Save masugadesign/591742 to your computer and use it in GitHub Desktop.
Sample EE1 config.php file
<?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";
$conf['max_caches'] = "1000";
break;
// if remote MySQL available
case 'staging':
$conf['db_hostname'] = "server.com";
$conf['db_username'] = "dbusername";
$conf['db_password'] = "dbp4ssw0rd";
$conf['db_name'] = "staging_dbname";
$conf['max_caches'] = "1000";
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/";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment