差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン | ||
| ja:documentation:pandorafms:technical_annexes:18_php_8 [2024/04/06 07:35] – [PHP 8.2 へのアップデート] 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%> | ||
| + | |||
| + | The end-of-life of the CentOS 7 operating system is June 2024. | ||
| + | |||
| + | </ | ||
| + | |||
| + | <WRAP center round info 90%> | ||
| + | |||
| + | CentOS 7 の EoL は 2024年6月です。 | ||
| + | |||
| + | </ | ||
| + | |||
| + | <wrap #ks4_1 /> | ||
| + | |||
| + | ==== CentOS 7 での PHP 8.0 へのアップデート | ||
| * Configure the repositories: | * Configure the repositories: | ||
| * リポジトリを設定します。 | * リポジトリを設定します。 | ||
| + | |||
| < | < | ||
| 行 146: | 行 160: | ||
| * PHP 8 とその依存ファイルをインストールします。 | * PHP 8 とその依存ファイルをインストールします。 | ||
| + | |||
| < | < | ||
| yum install -y \ | yum install -y \ | ||
| - | php php-mcrypt php-cli php-gd php-curl php-mysql \ | + | |
| - | | + | php-mysqlnd |
| - | php-pecl-zip php-xmlrpc | + | |
| + | php-xmlrpc php-xml php-yaml mod_php | ||
| </ | </ | ||
| - | < | + | * Restart the web server: '' |
| - | systemctl restart httpd | + | * Verify the version installed with: '' |
| - | </ | + | * ウェブサーバの再起動: |
| + | * インストールバージョンの確認: | ||
| - | | + | <wrap #ks4_2 /> |
| + | |||
| + | ==== CentOS 7 での PHP 8.2 へのアップデート ==== | ||
| + | |||
| + | | ||
| + | |||
| + | * リポジトリを設定します。 | ||
| - | * インストールされたバージョンを確認します。 | ||
| < | < | ||
| - | php --version | + | |
| + | yum -y install https:// | ||
| + | yum -y install https:// | ||
| + | yum -y install yum-utils | ||
| + | yum-config-manager --disable 'remi-php*' | ||
| + | yum-config-manager --enable remi-php82 | ||
| </ | </ | ||
| - | You will get an answer similar to the following: | + | * Install PHP 8 and its dependencies: |
| + | |||
| + | * PHP 8 とその依存ファイルをインストールします。 | ||
| - | 次のような応答が得られます。 | ||
| < | < | ||
| - | PHP 8.0.19 (cli) (built: May 10 2022 08:07:35) ( NTS gcc x86_64 ) | + | yum install -y \ |
| - | Copyright (c) The PHP Group | + | |
| - | Zend Engine v4.0.19, Copyright (c) Zend Technologies | + | php-mysqlnd php-ldap php-zip php-zlib php-fileinfo \ |
| + | php-gettext php-snmp php-mbstring php-pecl-zip \ | ||
| + | php-xmlrpc php-xml php-yaml mod_php | ||
| </ | </ | ||
| + | |||
| + | * Restart the web server: '' | ||
| + | * Verify the version installed with: '' | ||
| + | |||
| + | * ウェブサーバの再起動: | ||
| + | * インストールバージョンの確認: | ||
| + | |||
| + | <wrap #ks5 /> | ||
| ===== RHEL 7 ===== | ===== RHEL 7 ===== | ||
| 行 191: | 行 227: | ||
| </ | </ | ||
| - | ===== Rocky Linux 8/AlmaLinux 8/RHEL 8 ===== | ||
| - | * Configure the repositories: | ||
| - | |||
| - | * リポジトリを設定します。 | ||
| - | <code bash> | ||
| - | dnf module reset php -y | ||
| - | dnf module enable php: | ||
| - | |||
| - | </ | ||
| - | |||
| - | * Install PHP: | ||
| - | |||
| - | * PHP をインストールします。 | ||
| - | <code bash> | ||
| - | dnf install -y php php-fpm | ||
| - | |||
| - | </ | ||
| - | |||
| - | * Install dependencies: | ||
| - | |||
| - | * 依存ファイルをインストールします。 | ||
| - | <code bash> | ||
| - | dnf install -y \ | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | |||
| - | </ | ||
| - | |||
| - | * Restart php-fpm | ||
| - | |||
| - | * php-ftm を再起動します。 | ||
| - | |||
| - | <code bash> | ||
| - | systemctl restart php-fpm | ||
| - | </ | ||
| - | |||
| - | |||
| - | * Verify the version installed: | ||
| - | |||
| - | * インストールしたバージョンを確認します。 | ||
| - | <code bash> | ||
| - | php --version | ||
| - | |||
| - | </ | ||
| - | |||
| - | You will get an answer similar to the following: | ||
| - | |||
| - | 次のような応答が得られます。 | ||
| - | |||
| - | < | ||
| - | 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: | ||