ja:documentation:07_technical_annexes:18_php_8

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
最新のリビジョン両方とも次のリビジョン
ja:documentation:07_technical_annexes:18_php_8 [2022/06/10 22:38] – 作成 junichija:documentation:07_technical_annexes:18_php_8 [2023/03/01 08:09] – [CentOS 7] junichi
行 1: 行 1:
-====== Upgrading from PHP 7 to PHP 8 ======+====== PHP 7 から PHP 8 へのアップグレード ======
  
 {{indexmenu_n>18}} {{indexmenu_n>18}}
  
-[[:en:documentation:start|Go back to Pandora FMS documentation index]]+[[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]]
  
-===== Prerequisites =====+===== 前提条件 =====
  
   * Open a terminal window with the **root**  user and enter the following command:   * Open a terminal window with the **root**  user and enter the following command:
 +
 +  * **root** ユーザでターミナルウィンドウを開き、次のコマンドを入力します。
 +
 <code> <code>
  
行 15: 行 18:
  
 You will get an answer similar to the following: You will get an answer similar to the following:
 +
 +次のような応答が得られます。
  
 <code> <code>
行 25: 行 30:
   * Perform a data backup procedure. See "[[:en:documentation:07_technical_annexes:07_backup_and_restore_procedures|Backup and Restore Procedures]]" for details.   * Perform a data backup procedure. See "[[:en:documentation:07_technical_annexes:07_backup_and_restore_procedures|Backup and Restore Procedures]]" for details.
  
 +  * データバックアップ手順を実施します。詳細は、[[:ja:documentation:07_technical_annexes:07_backup_and_restore_procedures|バックアップおよびリストア手順]] を参照してください。
 + 
 ===== CentOS 7 ===== ===== CentOS 7 =====
  
   * Configure the repositories:   * Configure the repositories:
 +
 +  * リポジトリを設定します。
 <code> <code>
  
行 40: 行 49:
   * Install PHP 8 and its dependencies:   * Install PHP 8 and its dependencies:
  
 +  * PHP 8 とその依存ファイルをインストールします。
 <code> <code>
 yum install -y \ yum install -y \
行 45: 行 55:
  php-ldap php-zip php-fileinfo php-snmp php-mbstring \  php-ldap php-zip php-fileinfo php-snmp php-mbstring \
  php-pecl-zip php-xmlrpc libxslt php-xml php-fpm  php-pecl-zip php-xmlrpc libxslt php-xml php-fpm
 +
 +</code>
 +
 +<code>
 +systemctl restart httpd
  
 </code> </code>
行 50: 行 65:
   * Verify the version installed with:   * Verify the version installed with:
  
 +  * インストールされたバージョンを確認します。
 <code> <code>
 php --version php --version
行 57: 行 73:
 You will get an answer similar to the following: You will get an answer similar to the following:
  
 +次のような応答が得られます。
 <code> <code>
 PHP 8.0.19 (cli) (built: May 10 2022 08:07:35) ( NTS gcc x86_64 ) PHP 8.0.19 (cli) (built: May 10 2022 08:07:35) ( NTS gcc x86_64 )
行 63: 行 80:
  
 </code> </code>
 +
 +===== RHEL 7 =====
 +
 +<WRAP center round tip 75%>
 +
 +To upgrade to PHP 8 in RHEL 7 [[https://pandorafms.com/en/technical-support/|contact Pandora FMS support department]].
 +
 +</WRAP>
 +
 +<WRAP center round tip 75%>
 +
 +RHEL 7 で PHP 8 にアップグレードするには、[[https://pandorafms.com/ja/contact/|Pandora FMS サポート]] へ連絡ください。
 +
 +</WRAP>
  
 ===== Rocky Linux 8/AlmaLinux 8/RHEL 8 ===== ===== Rocky Linux 8/AlmaLinux 8/RHEL 8 =====
行 68: 行 99:
   * Configure the repositories:   * Configure the repositories:
  
-<code>+  * リポジトリを設定します。 
 +<code bash>
 dnf module reset php -y dnf module reset php -y
 dnf module enable php:remi-8.0 dnf module enable php:remi-8.0
行 76: 行 108:
   * Install PHP:   * Install PHP:
  
-<code>+  * PHP をインストールします。 
 +<code bash>
 dnf install -y php php-fpm dnf install -y php php-fpm
  
行 83: 行 116:
   * Install dependencies:   * Install dependencies:
  
-<code>+  * 依存ファイルをインストールします。 
 +<code bash>
 dnf install -y \ dnf install -y \
  php-cli php-fpm php-curl php-mysqlnd php-gd php-opcache php-zip \  php-cli php-fpm php-curl php-mysqlnd php-gd php-opcache php-zip \
行 91: 行 125:
  
 </code> </code>
 +
 +  * Restart php-fpm
 +
 +  * php-ftm を再起動します。
 +
 +<code bash>
 +systemctl restart php-fpm
 +</code>
 +
  
   * Verify the version installed:   * Verify the version installed:
  
-<code>+  * インストールしたバージョンを確認します。 
 +<code bash>
 php --version php --version
  
行 100: 行 144:
  
 You will get an answer similar to the following: You will get an answer similar to the following:
 +
 +次のような応答が得られます。
  
 <code> <code>
行 108: 行 154:
 </code> </code>
  
-[[:en:documentation:start|Go back to Pandora FMS documentation index]]+[[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]]