ja:documentation:pandorafms:technical_annexes:18_php_8

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
ja:documentation:pandorafms:technical_annexes:18_php_8 [2024/04/06 07:39] – [CentOS 7 での PHP 8.0 へのアップデート] junichija:documentation:pandorafms:technical_annexes:18_php_8 [2025/02/20 02:36] (現在) – [前提条件] junichi
行 4: 行 4:
  
 [[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]] [[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]]
 +
 +<wrap #ks1 />
  
 ===== 前提条件 ===== ===== 前提条件 =====
  
-  * Open a terminal window with the **root**  user and enter the following command:+  * Open a terminal window with user **root** or equivalent, execute ''php -v''
 +  * Verify that version 7.x is installed. 
 +  * It is recommended to perform a [[:en:documentation:pandorafms:technical_annexes:07_backup_and_restore_procedures|backup]].
  
-  * **root** ユーザでターミナルウィンドウを開き、次のコマ入力します。+  * **root** ユーザでターミナルウィンドウを開き、''php -v'' を実行します。 
 +  * バージョン 7.x がインストールされていることを確認します。 
 +  * [[:ja:documentation:pandorafms:technical_annexes:07_backup_and_restore_procedures|バックアップ]]を実行することお勧めします。
  
-<code>+<wrap #ks2 />
  
-php --version+===== Rocky Linux 8/AlmaLinux 8/RHEL 8 =====
  
-</code> +<wrap #ks2_1 />
- +
-You will get an answer similar to the following: +
- +
-次のような応答が得られます。 +
- +
-<code> +
-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 +
- +
-</code> +
- +
-  * 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|バックアップおよびリストア手順]] を参照してください。 +
-  +
-===== Rocky Linux 8/AlmaLinux 8/RHEL 8 =====+
  
 ==== PHP 8.0 へのアップデート ==== ==== PHP 8.0 へのアップデート ====
行 66: 行 55:
   * php-fpm の再起動: ''systemctl restart php-fpm''   * php-fpm の再起動: ''systemctl restart php-fpm''
   * インストールバージョンの確認: ''php -v''   * インストールバージョンの確認: ''php -v''
 +
 +<wrap #ks2_2 />
  
 ==== PHP 8.2 へのアップデート ==== ==== PHP 8.2 へのアップデート ====
行 84: 行 75:
  
 </code> </code>
 +
 +<wrap #ks3 />
  
 ===== Ubuntu server 22.04 ===== ===== Ubuntu server 22.04 =====
行 128: 行 121:
 </code> </code>
  
-===== CentOS 7 =====+[[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]] 
 + 
 + 
 + 
 +===== (OBSOLETE) CentOS 7 =====
  
 <WRAP center round info 90%> <WRAP center round info 90%>
行 141: 行 138:
  
 </WRAP> </WRAP>
 +
 +<wrap #ks4_1 />
  
 ==== CentOS 7 での PHP 8.0 へのアップデート ==== ==== CentOS 7 での PHP 8.0 へのアップデート ====
行 175: 行 174:
   * ウェブサーバの再起動: ''systemctl restart httpd''   * ウェブサーバの再起動: ''systemctl restart httpd''
   * インストールバージョンの確認: ''php -v''   * インストールバージョンの確認: ''php -v''
 +
 +<wrap #ks4_2 />
  
 ==== CentOS 7 での PHP 8.2 へのアップデート ==== ==== CentOS 7 での PHP 8.2 へのアップデート ====
行 209: 行 210:
   * ウェブサーバの再起動: ''systemctl restart httpd''   * ウェブサーバの再起動: ''systemctl restart httpd''
   * インストールバージョンの確認: ''php -v''   * インストールバージョンの確認: ''php -v''
 +
 +<wrap #ks5 />
  
 ===== RHEL 7 ===== ===== RHEL 7 =====
行 224: 行 227:
 </WRAP> </WRAP>
  
-===== Rocky Linux 8/AlmaLinux 8/RHEL 8 ===== 
  
-  * Configure the repositories: 
- 
-  * リポジトリを設定します。 
-<code bash> 
-dnf module reset php -y 
-dnf module enable php:remi-8.0 
- 
-</code> 
- 
-  * Install PHP: 
- 
-  * PHP をインストールします。 
-<code bash> 
-dnf install -y php php-fpm 
- 
-</code> 
- 
-  * Install dependencies: 
- 
-  * 依存ファイルをインストールします。 
-<code bash> 
-dnf install -y \ 
- php-cli php-fpm php-curl php-mysqlnd php-gd php-opcache php-zip \ 
- php-intl php-common php-bcmath php-imap php-imagick php-xmlrpc \ 
- php-json php-readline php-memcached php-redis php-mbstring php-apcu \ 
- php-xml php-dom php-redis php-memcached php-memcache 
- 
-</code> 
- 
-  * Restart php-fpm 
- 
-  * php-ftm を再起動します。 
- 
-<code bash> 
-systemctl restart php-fpm 
-</code> 
- 
- 
-  * Verify the version installed: 
- 
-  * インストールしたバージョンを確認します。 
-<code bash> 
-php --version 
- 
-</code> 
- 
-You will get an answer similar to the following: 
- 
-次のような応答が得られます。 
- 
-<code> 
-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 
- 
-</code> 
  
 [[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]] [[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]]
  
  
  • ja/documentation/pandorafms/technical_annexes/18_php_8.1712389198.txt.gz
  • 最終更新: 2024/04/06 07:39
  • by junichi