1
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* Dynamic Configuration -------------------------------------------------------------------*/ $ext = ($_SERVER['SERVER_ADDR'] == '127.0.0.1') ? '.local' : '.com'; $base_url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http"); $base_url .= "://".$_SERVER['HTTP_HOST']."/"; $admin_url = $base_url . 'admin.php'; /* ExpressionEngine Configuration -------------------------------------------------------------------*/ $config['app_version'] = "231"; $config['license_number'] = "00000000000"; $config['debug'] = "1"; $config['install_lock'] = ""; $config['system_folder'] = "_system"; $config['is_system_on'] = "y"; $config['allow_extensions'] = "y"; $config['server_path'] = FCPATH; $config['cp_url'] = $admin_url; $config['theme_folder_url'] = $config['site_url']."_themes/"; $config['theme_folder_path'] = $config['server_path']."_themes/"; $config['save_tmpl_files'] = "y"; $config['tmpl_file_basepath'] = $config['server_path']."_templates/"; $config['avatar_url'] = $base_url."_uploads/system/avatars/"; $config['avatar_path'] = $config['server_path']."_uploads/system/avatars/"; $config['photo_url'] = $base_url."_uploads/system/member_photos/"; $config['photo_path'] = $config['server_path']."_uploads/system/member_photos/"; $config['sig_img_url'] = $base_url."_uploads/system/signature_attachments/"; $config['sig_img_path'] = $config['server_path']."_uploads/system/signature_attachments/"; $config['prv_msg_upload_path'] = $config['server_path']."_uploads/system/pm_attachments/"; $config['site_url'] = $base_url; $config['encryption_key'] = "xxx"; /* Hidden Configuration Variables -------------------------------------------------------------------*/ $config['allow_textarea_tabs'] = 'y'; /* CodeIgniter Configuration -------------------------------------------------------------------*/ $config['base_url'] = $config['site_url']; $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'] = AUTO; $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'; /* Universal database connection settings -------------------------------------------------------------------*/ $active_group = $base_url; $active_record = TRUE; /* Local */ $db['http://domain.local/']['hostname'] = 'localhost'; $db['http://domain.local/']['username'] = xxx; $db['http://domain.local/']['password'] = 'xxx'; $db['http://domain.local/']['database'] = 'xxx'; $db['http://domain.local/']['dbprefix'] = "exp_"; /* Staging */ $db['http://dev.domain.com/']['hostname'] = 'localhost'; $db['http://dev.domain.com/']['username'] = 'xxx'; $db['http://dev.domain.com/']['password'] = 'xxx'; $db['http://dev.domain.com/']['database'] = 'xxx'; $db['http://dev.domain.com/']['dbprefix'] = "exp_"; /* Production */ $db['http://domain.com/']['hostname'] = 'localhost'; $db['http://domain.com/']['username'] = 'xxx'; $db['http://domain.com/']['password'] = 'xxx'; $db['http://domain.com/']['database'] = 'xxx'; $db['http://domain.com/']['dbprefix'] = "exp_"; $db[$active_group]['dbdriver'] = "mysql"; $db[$active_group]['pconnect'] = FALSE; $db[$active_group]['swap_pre'] = "exp_"; $db[$active_group]['db_debug'] = FALSE; $db[$active_group]['cache_on'] = FALSE; $db[$active_group]['autoinit'] = FALSE; $db[$active_group]['char_set'] = "utf8"; $db[$active_group]['dbcollat'] = "utf8_general_ci"; $db[$active_group]['cachedir'] = $config['server_path'].$config['system_folder']."/expressionengine/cache/db_cache/"; /* End of file config.php */ /* Location: ./system/expressionengine/config/config.php */

Best Config

Embed Size (px)

DESCRIPTION

work