Tag: CentOS6/PHP
yum install php php-mysql
まず現在のバージョンの確認と削除。
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
/etc/php.iniのmbstringを変更。
[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
---> Package php-mcrypt.x86_64 0:5.6.40-5.el6.remi will be an update --> 依存性の処理をしています: php-common(x86-64) = 5.6.40-5.el6.remi のパッケージ: php-mcrypt-5.6.40-5.el6.remi.x86_64 --> 依存性解決を終了しました。 エラー: パッケージ: php-mcrypt-5.6.40-5.el6.remi.x86_64 (remi-php56) 要求: php-common(x86-64) = 5.6.40-5.el6.remi インストール: php-common-5.6.38-2.el6.remi.x86_64 (@remi-php56) php-common(x86-64) = 5.6.38-2.el6.remi 利用可能: php-common-5.3.3-49.el6.x86_64 (base) php-common(x86-64) = 5.3.3-49.el6 問題を回避するために --skip-broken を用いることができません
enabled=1
exclude=php*