wp-config.php 설정 후 저장할 때 한가지 주의 사항 – 한국워드프레스사용자모임 https://kopress.kr/topic/wp-config-php-%ec%84%a4%ec%a0%95-%ed%9b%84-%ec%a0%80%ec%9e%a5%ed%95%a0-%eb%95%8c-%ed%95%9c%ea%b0%80%ec%a7%80-%ec%a3%bc%ec%9d%98-%ec%82%ac%ed%95%ad/feed/ Sun, 28 Apr 2024 08:47:17 +0000 https://bbpress.org/?v=2.6.9 ko-KR https://kopress.kr/topic/wp-config-php-%ec%84%a4%ec%a0%95-%ed%9b%84-%ec%a0%80%ec%9e%a5%ed%95%a0-%eb%95%8c-%ed%95%9c%ea%b0%80%ec%a7%80-%ec%a3%bc%ec%9d%98-%ec%82%ac%ed%95%ad/#post-86 <![CDATA[wp-config.php 설정 후 저장할 때 한가지 주의 사항]]> https://kopress.kr/topic/wp-config-php-%ec%84%a4%ec%a0%95-%ed%9b%84-%ec%a0%80%ec%9e%a5%ed%95%a0-%eb%95%8c-%ed%95%9c%ea%b0%80%ec%a7%80-%ec%a3%bc%ec%9d%98-%ec%82%ac%ed%95%ad/#post-86 Wed, 21 Dec 2005 18:53:42 +0000 그림동화님의 글중에서…
http://www.wordpress.kr/wordpress/forum/viewtopic.php?t=3

(wp-config.php 설정 후 저장 할때는 ANSI 인코딩으로 하여야 합니다.)

처음 Word Press를 설치 할때 계속 아래와 같은 에러가 발생했습니다.

Warning: Cannot modify header information – headers already sent by (output started at /home/fromto/public_html/wordpress/wp-config.php:1) in /…/wp-login.php on line 7

Warning: Cannot modify header information – headers already sent by (output started at /home/fromto/public_html/wordpress/wp-config.php:1) in /…./wp-login.php on line 8

Warning: Cannot modify header information – headers already sent by (output started at /home/fromto/public_html/wordpress/wp-config.php:1) in /…/wp-login.php on line 9

Warning: Cannot modify header information – headers already sent by (output started at /home/fromto/public_html/wordpress/wp-config.php:1) in /…/wp-login.php on line 10

http://www.wordpress.org 의 포럼에 같은 에러를 발생한 유저들이 몇명 있었지만 해결책을 찾지 못했습니다.. (공백을 제거해라 ASCII 모드로 업로드하라는 했지만 계속 에러가 발생했습니다.)

알고 보니 원인은 바로 wp-config.php 파일에 있었습니다. wp-config.php 환경 설정하고 저장 할때 인코딩을 UTF-8 로 하여 에러가 발생했던 것입니다.

wp-config.php을 저장 할때 ANSI 인코딩으로 되어있는지 확인하여야 합니다.

그림동화님 글 중에 반대의 결과를 얻었습니다.
이 글을 접하기전에 저의 경우는 다음과 같았습니다.

에디트플러스에서 편집하고 저장할때 기본이 ANSI로 되어있어서
ANSI 저장을 하면 에러가 생기는데 원인이 뭘까 고민하다가 UTF-8로 저장해서 해결했습니다.

WordPress가 UTF-8로 이루어졌다는데에서 저의 경우가 맞다고 생각하고 있었는데
왜 상반된 결과가 도출되는지 의문이군요.?

]]>