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 1 year has passed since last update.

AlmaLinux OS 9にPHP 8.0, PHP-FPM 8.0をインストール(AppStream)

Last updated at Posted at 2022-09-07

はじめに

Application Stream(AppStream)を利用してAlmaLinux9にPHP8.0をインストール
親記事:PHP, PHP-FPMの各種インストール方法とEOLまとめ
参考:RHEL8のパッケージ構成 - BaseOSとApplication Stream - 赤帽エンジニアブログ

サポート

本手法で導入した場合、Red Hat Enterprise Linux Application Streams Life Cycle - Red Hat Customer Portalより、2032-05がEOLだと思われる。(OS EOLまでサポート)
それ以降に報告された脆弱性や不具合への対応は実施されない可能性がある。

LOG

インストール

提供するバージョンが増えてモジュール化したら、yum module install php:8.0のような感じになるかもしれない

# cat /etc/redhat-release
AlmaLinux release 9.0 (Emerald Puma)

# yum install php
... 略

各種確認

# which php
/usr/bin/php

# php -v
PHP 8.0.13 (cli) (built: Nov 16 2021 18:07:21) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.13, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.13, Copyright (c), by Zend Technologies

# php -i | grep php.ini
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini

# which php-fpm
/usr/sbin/php-fpm

# php-fpm -v
PHP 8.0.13 (fpm-fcgi) (built: Nov 16 2021 18:07:21)
Copyright (c) The PHP Group
Zend Engine v4.0.13, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.13, Copyright (c), by Zend Technologies
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?