phpのバージョンアップ

8.0から8.3にバージョンアップ

cat /etc/os-release
NAME=”Rocky Linux”
VERSION=”8.10 (Green Obsidian)”
php -v
PHP 8.0
標準では php8.0 まで、 remi9をインストール
# dnf -y install https://rpms.remirepo.net/enterprise/remi-release-9.rpm
# dnf module list php
Remi’s Modular repository for Enterprise Linux 8 – aarch64
php remi-7.2
php remi-7.3
php remi-7.4
php remi-8.0
php remi-8.1
php remi-8.2
php remi-8.3
php remi-8.4

module list で php:remi-8.3をデフォルトにする
# dnf -y module reset php && dnf -y module enable php:remi-8.3
php remi-7.2
php remi-7.3
php remi-7.4
php remi-8.0
php remi-8.1
php remi-8.2
php remi-8.3  [e]
php remi-8.4

# dnf -y install php php-cli php-fpm php-devel php-pear php-curl php-mysqlnd php-gd php-opcache php-zip php-intl php-common php-bcmath php-imagick php-xmlrpc php-json php-readline php-memcached php-redis php-mbstring php-apcu php-xml php-dom php-redis php-memcached php-memcache php-process
# php -v
PHP 8.3.16 (cli)

Previous article

nmcliでネットワーク設定

Next article

OpenAIのモデルと、GPT