PHP5.5のインストール

php5.5のインストールを行います。

1. PHPのインストール

yumでインストールを行います。
# yum install --enablerepo=remi-php55 php
# yum install --enablerepo=remi-php55 php-devel

2. libmcryptのインストール

# yum install --enablerepo=epel libmcrypt

3. phpのモジュールのインストール

これは任意ですが、必要なモジュールをインストールします。
# yum install --enablerepo=remi-php55 php-mysql
# yum install --enablerepo=remi-php55 php-mbstring
# yum install --enablerepo=remi-php55 php-gd
# yum install --enablerepo=remi-php55 php-xml
# yum install --enablerepo=remi-php55 php-imap
# yum install --enablerepo=remi-php55 php-mcrypt
# yum install --enablerepo=remi-php55 php-pear

4. Apacheの再起動

Apacheを再起動して、PHPを有効にします。
# /sbin/service httpd restart


最終更新:2016年01月12日 15:21