ja:documentation:07_technical_annexes:18_php_8

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
ja:documentation:07_technical_annexes:18_php_8 [2023/03/01 08:09] – [CentOS 7] junichija:documentation:07_technical_annexes:18_php_8 [Unknown date] (現在) – 削除 - 外部編集 (Unknown date) 127.0.0.1
行 1: 行 1:
-====== PHP 7 から PHP 8 へのアップグレード ====== 
- 
-{{indexmenu_n>18}} 
- 
-[[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]] 
- 
-===== 前提条件 ===== 
- 
-  * Open a terminal window with the **root**  user and enter the following command: 
- 
-  * **root** ユーザでターミナルウィンドウを開き、次のコマンドを入力します。 
- 
-<code> 
- 
-php --version 
- 
-</code> 
- 
-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|バックアップおよびリストア手順]] を参照してください。 
-  
-===== CentOS 7 ===== 
- 
-  * Configure the repositories: 
- 
-  * リポジトリを設定します。 
-<code> 
- 
-yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 
-yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm 
-yum -y install yum-utils 
-yum-config-manager --disable 'remi-php*' 
-yum-config-manager --enable remi-php80 
- 
-</code> 
- 
-  * Install PHP 8 and its dependencies: 
- 
-  * PHP 8 とその依存ファイルをインストールします。 
-<code> 
-yum install -y \ 
- php php-mcrypt php-cli php-gd php-curl php-mysql \ 
- php-ldap php-zip php-fileinfo php-snmp php-mbstring \ 
- php-pecl-zip php-xmlrpc libxslt php-xml php-fpm 
- 
-</code> 
- 
-<code> 
-systemctl restart httpd 
- 
-</code> 
- 
-  * Verify the version installed with: 
- 
-  * インストールされたバージョンを確認します。 
-<code> 
-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> 
- 
-===== 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 ===== 
- 
-  * 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/07_technical_annexes/18_php_8.1677658152.txt.gz
  • 最終更新: 2023/03/01 08:09
  • by junichi