5
2

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.

centos6にphp7.1をインストールする

Last updated at Posted at 2018-07-07

AWSで作成したCentOSのサーバにPHPをインストールした際のメモです。

#Remiリポジトリを取得する

yum install http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

#既に古いバージョンがインストール済みの場合、消す

yum remove php*

#PHP7.1をインストール

yum install --enablerepo=remi,remi-php71 php php-bcmath php-dba php-devel php-gd php-imap php-mbstring php-mysql php-pdo php-soap php-xml php-xmlrpc php-pear httpd-devel

※インストールするパッケージは例なので、要件に応じて追加/削除してください。

#PHPバージョンを確認

php --version
5
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
5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?