開発日記/2006-09-03 の変更点
*OpenPNEで文字化け [#e2a40c3f]
[[dokuwiki.fl8.jp掲載済>http://dokuwiki.fl8.jp/doku.php/50_dialy/2006/09/03]]
流行のSNSをやってみようと思ってOpenPNEをインストールしてみまいしたが・・・
文字化け、Xoopsでも似たような事があったな・・・
今回はXoopsと同じサーバでの設定なんで、.htaccessで制御してみました。
**public_html/.htaccess [#a649a668]
php_value default_charset UTF-8
php_value mbstring.language Japanese
php_value mbstring.internal_encoding UTF-8
php_value mbstring.http_input pass
php_value mbstring.http_output pass
php_value mbstring.detect_order auto
php_value mbstring.substitute_character none
php_value mbstring.func_overload 0
php_flag mbstring.encoding_translation Off
**php.iniの場合はこうらしいです。 [#ieb6d664]
[PHP]
default_charset = "UTF-8"
[mbstring]
mbstring.language = Japanese
mbstring.internal_encoding = UTF-8
mbstring.http_input = auto
mbstring.http_output = auto
mbstring.detect_order = auto
mbstring.substitute_character = none;
mbstring.func_overload = 0
mbstring.encoding_translation = Off
**OpenPNEで画像がアップできない。 [#a1dfb44e]
GDをサポートしてないとアップできないみたいですね。
PHPを再インストールして完了
./configure --with-mysql=/usr/local --with-apxs2=/usr/local/sbin/apxs \
--with-tsrm-pth --enable-mbstring --enable-mbstr-enc-trans \
--enable-trans-sid --enable-versioning --with-gd \
--with-jpeg-dir=/usr/local --with-zlib-dir=/usr/local