PHP5.4のインストール
php5.4のインストールを行います。
1. PHPのインストール
yumでインストールを行います。
# yum install --enablerepo=remi php
# yum install --enablerepo=remi php-devel
2. libmcryptのインストール
# yum install --enablerepo=epel libmcrypt
3. phpのモジュールのインストール
これは任意ですが、必要なモジュールをインストールします。
# yum install --enablerepo=remi php-mysql
# yum install --enablerepo=remi php-mbstring
# yum install --enablerepo=remi php-gd
# yum install --enablerepo=remi php-xml
# yum install --enablerepo=remi php-imap
# yum install --enablerepo=remi php-mcrypt
4. Apacheの再起動
Apacheを再起動して、PHPを有効にします。
# /sbin/service httpd restart
最終更新:2015年05月27日 16:35