差分
このページの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 [2025/02/20 02:36] (現在) – [前提条件] junichi | ||
|---|---|---|---|
| 行 4: | 行 4: | ||
| [[ja: | [[ja: | ||
| + | |||
| + | <wrap #ks1 /> | ||
| ===== 前提条件 ===== | ===== 前提条件 ===== | ||
| - | * Open a terminal window with the **root** | + | * Open a terminal window with user **root** |
| + | * Verify that version 7.x is installed. | ||
| + | * It is recommended to perform a [[: | ||
| - | * **root** ユーザでターミナルウィンドウを開き、次のコマンドを入力します。 | + | * **root** ユーザでターミナルウィンドウを開き、'' |
| + | * バージョン 7.x がインストールされていることを確認します。 | ||
| + | * [[: | ||
| - | <code> | + | <wrap #ks2 /> |
| - | php --version | + | ===== Rocky Linux 8/AlmaLinux 8/RHEL 8 ===== |
| - | </code> | + | <wrap # |
| - | + | ||
| - | You will get an answer similar to the following: | + | |
| - | + | ||
| - | 次のような応答が得られます。 | + | |
| - | + | ||
| - | < | + | |
| - | PHP 7.4.29 (cli) (built: Apr 12 2022 10:55:38) ( NTS ) | + | |
| - | Copyright (c) The PHP Group | + | |
| - | Zend Engine v3.4.0, Copyright (c) Zend Technologies | + | |
| - | + | ||
| - | </ | + | |
| - | + | ||
| - | * Perform a data backup procedure. See " | + | |
| - | + | ||
| - | * データバックアップ手順を実施します。詳細は、[[: | + | |
| - | + | ||
| - | ===== Rocky Linux 8/AlmaLinux 8/RHEL 8 ===== | + | |
| ==== PHP 8.0 へのアップデート ==== | ==== PHP 8.0 へのアップデート ==== | ||
| 行 66: | 行 55: | ||
| * php-fpm の再起動: | * php-fpm の再起動: | ||
| * インストールバージョンの確認: | * インストールバージョンの確認: | ||
| + | |||
| + | <wrap #ks2_2 /> | ||
| ==== PHP 8.2 へのアップデート ==== | ==== PHP 8.2 へのアップデート ==== | ||
| 行 84: | 行 75: | ||
| </ | </ | ||
| + | |||
| + | <wrap #ks3 /> | ||
| ===== Ubuntu server 22.04 ===== | ===== Ubuntu server 22.04 ===== | ||
| 行 128: | 行 121: | ||
| </ | </ | ||
| - | ===== CentOS 7 ===== | + | [[ja: |
| + | |||
| + | |||
| + | |||
| + | ===== (OBSOLETE) | ||
| <WRAP center round info 90%> | <WRAP center round info 90%> | ||
| 行 141: | 行 138: | ||
| </ | </ | ||
| + | |||
| + | <wrap #ks4_1 /> | ||
| ==== CentOS 7 での PHP 8.0 へのアップデート ==== | ==== CentOS 7 での PHP 8.0 へのアップデート ==== | ||
| 行 176: | 行 175: | ||
| * インストールバージョンの確認: | * インストールバージョンの確認: | ||
| - | ===== RHEL 7 ===== | + | <wrap #ks4_2 /> |
| - | <WRAP center round tip 75%> | + | ==== CentOS |
| - | + | ||
| - | 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> | + | <wrap #ks5 /> |
| - | systemctl restart php-fpm | + | |
| - | </code> | + | |
| + | ===== RHEL 7 ===== | ||
| - | * Verify the version installed: | + | <WRAP center round tip 75%> |
| - | * インストールしたバージョンを確認します。 | + | To upgrade to PHP 8 in RHEL 7 [[https:// |
| - | <code bash> | + | |
| - | php --version | + | |
| - | </code> | + | </WRAP> |
| - | You will get an answer similar to the following: | + | <WRAP center round tip 75%> |
| - | 次のような応答が得られます。 | + | 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: | ||