Help us understand the problem. What is going on with this article?

php55からphp56へ上げる

More than 3 years have passed since last update.

AmazonLinux 2015.03 が出てphp56が使えるようになったのでphp55→php56にあげてみた。

手順

yum swap でパッケージを一気に入れ替える。

packages=($(rpm -qa php55*|sed 's/-[0-9].*//'))
sudo yum swap "${packages[@]}" -- "${packages[@]/php55/php56}"

ところでyum swapて最近知ったんだけどremove/installするより依存関係の面倒が無くて便利ね。

注意点

  • /etc/httpd/conf.d/php-conf.5.5.confphp-conf.5.6.conf に置き換わってるので書き換えしてた場合はこちらの内容確認を忘れないよう注意。
    • この中で php_value でセッション設定を上書きされててphp.iniの修正が効かねーとか悩む罠とかあるので。
  • あと /etc/php.ini や /etc/php.d もphp56用に置き換わってるので、こちらもphp55時に修正や追加をしてた場合は対応すること。
Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away