#author("2018-12-05T15:50:40+09:00","default:wikiwriter","wikiwriter")
&tag(CentOS6/PHP);
*目次 [#pd5dd85c]
#contents
*関連ページ [#lfd8e22f]
*参考情報 [#j4c50fd8]

*インストール [#mf0fd08b]
-以下のコマンドでインストールできる
 yum install php php-mysql
-mod_phpの設定は自動的に行われる。

*PHP5.6のインストール [#x8fc3737]

**参考情報 [#ue830368]
-[[CentOS6/CentOS7にPHP5.6/PHP7をyumでインストール - Qiita:https://qiita.com/ozawan/items/caf6e7ddec7c6b31f01e]]

**リポジトリの準備 [#m2959e9e]
-[[../外部リポジトリの追加]]に従いepelとremiを有効にしておく。

**インストール [#f915a265]
まず現在のバージョンの確認と削除。
 rpm -qa | grep php
 yum remove php-*
インストールする。yum-prioritiesを使用している場合「disableplugin=priorites」を指定しないとだめかも(もしくはremiの優先度を上げておくか)。
 yum install --disableplugin=priorities --enablerepo=remi,remi-php56 php php-devel php-mbstring php-pdo php-gd php-xml php-mcrypt

**設定 [#hd31551d]
/etc/php.iniのmbstringを変更。
#pre{{
[mbstring]
mbstring.language = Japanese
mbstring.internal_encoding = UTF-8
;mbstring.http_input = auto
mbstring.http_input = UTF-8
mbstring.http_output = UTF-8
mbstring.encoding_translation = On
mbstring.detect_order = auto
mbstring.substitute_character = none
mbstring.func_overload = 0
}}
-http_input=autoだとPukiWikiが文字化けしたからUTF-8に変更。
-DokuWikiを動かす場合mbstring.func_overload = 0じゃないとだめ。



トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS