Quantcast
Channel: PHP7.4タグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 113

PHPのインストール(CentOS8)

$
0
0

記事を読んで、「いいじゃね?」って思ったら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

Viewing all articles
Browse latest Browse all 113

Trending Articles