Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
5
Help us understand the problem. What is going on with this article?
@kawaz

php55からphp56へ上げる

More than 5 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時に修正や追加をしてた場合は対応すること。
5
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  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

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
5
Help us understand the problem. What is going on with this article?