1. 우선 DB는 phpMyAdmin 을 통해 옮기는게 편합니다. 중간에 버전이 다르면
date 부분에서 오류가 납니다.
2. 두번째로 파일이 utf-8로 변경해서 업로드 해야 합니다.
http://www.gogine.com/ 미니컨버터를 이용해서 한꺼번에 변경했습니다.
3. 그누보드 같은 경우 5.3 버전 이상일 경우 몇가지 수정해야 합니다.
가. split 오류 발생은 아래와 같이 bbs/list.php 입니다.
//$arr_notice = split("\n", trim($board[bo_notice]));
$arr_notice = explode("\n", trim($board[board_notice]));
나. Warning: date() [function.date]: It is not safe to rely on the system's timezone settings 오류 발생일 경우
config.php 에 아래와같이 삽입합니다.
date_default_timezone_set('Asia/Seoul');
다. Deprecated: Function eregi() is deprecated 오류 발생은
lib/common.lib.php 에서 아래와 같이 변경합니다.
//if (!eregi("^(http|https|ftp|telnet|news|mms)://", $url))
if (preg_match("#^(http|https|ftp|telnet|news|mms)://#", $img['src']))
라. 마지막으로 Warning: Unknown: open(./data/session/sess 이 부부은 권한이죠.
chmod -R 757 data 로 변경하면 되겠죠.
그러면 멋진 홈페이지가 이동 완성됩니다.
이상 컴즈유스타였습니다.
http://coms.u-star.org
댓글 6개
euc-kr로 그대로 올리는 방법입니다.
1. 디비 덤프
덤프 파일 맨 위에
set names euckr 추가
최초 테이블 만드는 것 이전 공백줄 제거
각 디비 마지막에
ENGINE=MyISAM => ENGINE=MyISAM default charset=utf8
디비 올리기
2. /etc/my.cnf
[mysqld]
set-variable = max_connections=500
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
default-character-set=euckr
init_connect=SET collation_connection=euckr_korean_ci
init_connect='set names euckr'
character-set-server=euckr
collation-server=euckr_korean_ci
character-set-client-handshake=FALSE
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
[client]
default-character-set=euckr
[mysqldump]
default-character-set=euckr
log-error=/var/log/mysqld.log
위처럼 하면 기존 euc-kr 그누보드나 제로보드 옮길 수 있습니다.
1. 디비 덤프
덤프 파일 맨 위에
set names euckr 추가
최초 테이블 만드는 것 이전 공백줄 제거
각 디비 마지막에
ENGINE=MyISAM => ENGINE=MyISAM default charset=utf8
디비 올리기
2. /etc/my.cnf
[mysqld]
set-variable = max_connections=500
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
default-character-set=euckr
init_connect=SET collation_connection=euckr_korean_ci
init_connect='set names euckr'
character-set-server=euckr
collation-server=euckr_korean_ci
character-set-client-handshake=FALSE
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
[client]
default-character-set=euckr
[mysqldump]
default-character-set=euckr
log-error=/var/log/mysqld.log
위처럼 하면 기존 euc-kr 그누보드나 제로보드 옮길 수 있습니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 33318 | |
| 33314 | |
| 33307 | |
| 33301 | |
| 33294 | |
| 33291 | |
| 33288 | |
| 33271 | |
| 33258 | |
| 33255 | |
| 33235 | |
| 33234 | |
| 33228 | |
| 33221 | |
| 33186 | |
| 33176 | |
| 33158 | |
| 33154 | |
| 33147 | |
| 33134 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기