6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

php5.6からphp7.0にバージョンアップしてみた

Last updated at Posted at 2016-07-07

codeigniter3.0で動作しているサービスでPHP5.6からPHP7.0にバージョンアップしてみたので手順をメモしておきます。
ちょっとは調整が必要になるかな~と思ってたけど何も発生しませんでした。だから只のバージョンアップしてみた記事です。

1.ちょっと停止

sudo /etc/init.d/nginx stop
sudo /etc/init.d/php-fpm stop

2.既存PHP削除

sudo yum -y remove php-*

3.Remiリポジトリを追加

# centos ver6
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo rpm -Uvh ./remi-release-6.rpm

# centos ver7
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
sudo rpm -Uvh ./remi-release-7.rpm

4.php7インストール

sudo yum -y install --enablerepo=remi,remi-php70 php php-fpm php-devel php-pecl-xdebug php-mbstring php-mcrypt php-openssl php-mysqlnd php-xml sendmail

5.起動

sudo /etc/init.d/nginx start
sudo /etc/init.d/php-fpm start

以上、php5.6からphp7.0にバージョンアップしてみたでした。

6
5
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
6
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?