3
0

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 3 years have passed since last update.

PHPのインストール(CentOS8)

Last updated at Posted at 2020-11-10

記事を読んで、「いいじゃね?」って思ったらLGTMお願いします。

前提条件

・dockerで構築したCentOSでPHPをインストールする
・CentOSのバージョンは以下

$ cat /etc/redhat-release
CentOS Linux release 8.2.2004 (Core)

既にPHPがインストールされていないか確認

既にPHPがインストールされているか確認

$ yum list installed | grep php

もし、インストールれていれば削除する

$ yum remove php*

PHPをインストールする

$ yum install epel-release
$ yum install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
$ yum remove php-*
$ yum install php74

PHPがインストールされているか確認する

$ php74 -version
PHP 7.4.12 (cli) (built: Oct 27 2020 15:01:52) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
3
0
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
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?