ユーザ用ツール

サイト用ツール


50_dialy:2006:09:03

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
50_dialy:2006:09:03 [2015/05/11 07:20] – 作成 matsui50_dialy:2006:09:03 [2017/11/08 05:49] (現在) matsui
行 1: 行 1:
 +====== 2006.09.03 OpenPNEで文字化け ======
  
 +流行のSNSをやってみようと思ってOpenPNEをインストールしてみまいしたが・・・ 文字化け、Xoopsでも似たような事があったな・・・
 +
 +今回はXoopsと同じサーバでの設定なんで、.htaccessで制御してみました。
 +===== public_html/.htaccess =====
 +<code>
 +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
 +</code>
 +
 +===== php.iniの場合はこうらしい =====
 +
 +<code>
 +[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
 +</code>
 +
 +===== OpenPNEで画像がアップできない =====
 +
 +
 +GDをサポートしてないとアップできないみたいですね。 PHPを再インストールして完了
 +<code>
 +./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
 +</code>
 +
 +{{tag>日記 openpne}}