差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
ja:documentation:pandorafms:technical_annexes:18_php_8 [2024/04/06 07:38] – [CentOS 7] junichi | ja:documentation:pandorafms:technical_annexes:18_php_8 [2024/04/06 07:40] (現在) – [Rocky Linux 8/AlmaLinux 8/RHEL 8] junichi | ||
---|---|---|---|
行 176: | 行 176: | ||
* インストールバージョンの確認: | * インストールバージョンの確認: | ||
- | ===== RHEL 7 ===== | + | ==== CentOS |
- | + | ||
- | <WRAP center round tip 75%> | + | |
- | + | ||
- | To upgrade to PHP 8 in RHEL 7 [[https:// | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | <WRAP center round tip 75%> | + | |
- | + | ||
- | RHEL 7 で PHP 8 にアップグレードするには、[[https:// | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | ===== Rocky Linux 8/AlmaLinux 8/RHEL 8 ===== | + | |
* Configure the repositories: | * Configure the repositories: | ||
* リポジトリを設定します。 | * リポジトリを設定します。 | ||
- | <code bash> | ||
- | dnf module reset php -y | ||
- | dnf module enable php: | ||
- | </code> | + | < |
- | * Install PHP: | + | yum -y install https:// |
- | + | yum -y install | |
- | * PHP をインストールします。 | + | yum -y install yum-utils |
- | <code bash> | + | yum-config-manager --disable 'remi-php*' |
- | dnf install -y php php-fpm | + | yum-config-manager --enable remi-php82 |
</ | </ | ||
- | * Install dependencies: | + | * Install |
- | * 依存ファイルをインストールします。 | + | * PHP 8 とその依存ファイルをインストールします。 |
- | <code bash> | + | |
- | dnf install -y \ | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
+ | < | ||
+ | yum install -y \ | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
</ | </ | ||
- | * Restart php-fpm | + | * Restart |
+ | * Verify the version installed with: '' | ||
- | * php-ftm を再起動します。 | + | * ウェブサーバの再起動: '' |
+ | * インストールバージョンの確認: | ||
- | <code bash> | + | ===== RHEL 7 ===== |
- | systemctl restart php-fpm | + | |
- | </ | + | |
+ | <WRAP center round tip 75%> | ||
- | * Verify the version installed: | + | To upgrade to PHP 8 in RHEL 7 [[https:// |
- | * インストールしたバージョンを確認します。 | + | </WRAP> |
- | <code bash> | + | |
- | php --version | + | |
- | </code> | + | <WRAP center round tip 75%> |
- | You will get an answer similar to the following: | + | RHEL 7 で PHP 8 にアップグレードするには、[[https:// |
- | 次のような応答が得られます。 | + | </ |
- | < | ||
- | PHP 8.0.19 (cli) (built: May 10 2022 08:07:35) ( NTS gcc x86_64 ) | ||
- | Copyright (c) The PHP Group | ||
- | Zend Engine v4.0.19, Copyright (c) Zend Technologies | ||
- | </ | ||
[[ja: | [[ja: | ||