0
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.

AlmaLinuxでphpバージョンをアップグレード(7.2→7.4)

Last updated at Posted at 2022-02-08

基本環境
現状phpバージョン確認
モジュールインストール
phpインストール
任意モジュールインストール
参考記事

基本環境

Linux OSバージョンの確認

cat /etc/redhat-release

AlmaLinux release 8.5 (Arctic Sphynx)

現状phpバージョン確認

# php -v


モジュールインストール

libmcryptのインストール

# dnf install --enablerepo=epel libmcrypt

libargon2のインストール

# dnf install --enablerepo=epel libargon2
# dnf install --enablerepo=epel libargon2-devel

phpインストール

php moduleの初期化

# dnf module reset php

phpのインストール

# dnf module install php:remi-7.4
# dnf --enablerepo=epel,remi install php
# dnf --enablerepo=epel,remi install php-devel

phpバージョンの確認

# php -v

PHP 7.4.27 (cli) (built: Dec 14 2021 17:17:06) ( NTS )

任意モジュールインストール

# dnf install --enablerepo=remi php-mysqlnd
# dnf install --enablerepo=remi php-gd
# dnf install --enablerepo=remi php-xmlrpc
# dnf install --enablerepo=remi php-pecl-mcrypt
# dnf install --enablerepo=remi php-opcache
# dnf install --enablerepo=remi php-pecl-apcu
# dnf install --enablerepo=remi php-pecl-zip
# dnf install --enablerepo=remi php-pear

参考記事

https://w.atwiki.jp/sanosoft/pages/154.html

0
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
0
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?