2009. 10. 6.

apache, php 설치후 웹페이지 한글이 깨지는 경우

apache 2.x, php 5.x 버전을 설치후
홈페이지 소스가 euc-kr 인경우 php.ini 기본 설정은 iso-8859-1 로 설정 되어 있어서 깨지는 것입니다.

따라서, php.ini을 열어서 추가 해주시면 됩니다.

vi /usr/local/lib/php.ini

;default_charset = "iso-8859-1"
default_charset = "euc-kr"

ZendOptimizer 를 설치 하셨다면 다시 install.sh 실행 해주셔야 합니다.

0 개의 댓글:

Archive

prof

With you not around it’s a little bit more than I can stand. Don’t tell me I ran out of time If it takes the rest of my life.