LoginSignup
1
2

More than 5 years have passed since last update.

yumでPHP5.6をインストール

Last updated at Posted at 2016-05-30
$ sudo rpm -Uvh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
$ sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
$ sudo yum install --enablerepo=remi-php56 --disablerepo=base,updates php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof

disableを指定しないとちゃんと5.6が入らなかったりする

$ ls /etc/httpd/modules/libphp*
/etc/httpd/modules/libphp56-php5.so

apacheの設定。 /etc/httpd/conf/httpd.conf に以下を追記

LoadModule php5_module modules/libphp56-php5.so

おわり

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2