XE(XpressEngine) - 관리자 메뉴 - 설정파일 수동으로 설정하기(db.config.php)
2019.02.16 00:58
XE는 관리자 메뉴에서 대부분 설정이 가능하지만, 설정파일에서 수동으로 설정할 수도 있습니다. 하지만 특별한 경우를 제외하고는 권장하지는 않습니다.
설정파일 위치는 ./file/config/db.config.php 입니다.
MySQL DB 명이나 hostname, userid, password를 최초 설정 시, 잘못 설정했을 경우 아래와 같이 수정하면 됩니다.
[root@localhost config]# pwd
/home/test/public_html/files/config
[root@localhost config]# cat db.config.php
<?php if(!defined("__XE__")) exit();
$db_info = (object)array (
'master_db' =>
array (
'db_type' => 'mysql',
'db_port' => '3306',
'db_hostname' => 'localhost',
'db_userid' => 'test',
'db_password' => 'test1234',
'db_database' => 'test',
'db_table_prefix' => 'xe_',
),
'slave_db' =>
array (
0 =>
array (
'db_type' => 'mysql',
'db_port' => '3306',
'db_hostname' => 'localhost',
'db_userid' => 'test',
'db_password' => 'test1234',
'db_database' => 'test',
'db_table_prefix' => 'xe_',
),
),
'default_url' => 'http://test.test.co.kr/',
'use_mobile_view' => 'Y',
'use_rewrite' => 'Y',
'time_zone' => '+0900',
'use_prepared_statements' => 'Y',
'qmail_compatibility' => 'N',
'use_db_session' => 'N',
'use_ssl' => 'none',
'sitelock_whitelist' =>
array (
0 => '127.0.0.1',
1 => '192.168.101.*',
),
'use_sso' => 'N',
'use_html5' => 'N',
'admin_ip_list' =>
array (
0 => 127.0.0.1',
),
'http_port' => 80,
'https_port' => 443,
'use_sitelock' => 'N',
--> 관리자 페이지를 실수로 막은 경우 use_sitelock을 Y 에서 N으로 수정하면 됩니다.
'sitelock_title' => 'Maintenance in progress...',
'sitelock_message' => '공사중입니다.',
);[root@localhost config]#

