ja:documentation:07_technical_annexes:14_php_7

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
最新のリビジョン両方とも次のリビジョン
ja:documentation:07_technical_annexes:14_php_7 [2022/12/01 06:05] – [PHP 7 のアップデート] junichija:documentation:07_technical_annexes:14_php_7 [2023/06/22 03:05] – [PHP 7 のインストールとアップデート] junichi
行 1: 行 1:
-====== PHP 7 のインストールとアップデート ====== +====== (OBSOLETE) PHP 7 のインストールとアップデート ====== 
 {{indexmenu_n>14}} {{indexmenu_n>14}}
  
行 124: 行 124:
 {{  :wiki:version_7_4_php.png  }} {{  :wiki:version_7_4_php.png  }}
  
-==== PHP 7 のアップデート ====+===== PHP 7 のアップデート =====
  
 <WRAP center round tip 60%> <WRAP center round tip 60%>
行 138: 行 138:
 </WRAP> </WRAP>
  
-=== CentOS === +==== CentOS ==== 
-epel および remi から最新バージョンをインストールためリポトリをダウロードします。+ 
 +Check PHP version installed in the machine: 
 + 
 +インストールされている PHP バーを確認します。
  
 <code> <code>
-# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm +php –v 
-# yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm+
 </code> </code>
  
-CentOS 6 では、以下からダウンロードします。+{{  :wiki:version_5_4_php.png  }} 
 + 
 +Download the [[https://www.redhat.com/en/blog/whats-epel-and-how-do-i-use-it|EPEL]] and Remi (repository with the latest versions of PHP 7): 
 + 
 +[[https://www.redhat.com/en/blog/whats-epel-and-how-do-i-use-it|EPEL]] および remi (PHP 7 の最新バージョンリポジトリ) をダウンロードします。
  
 <code> <code>
-# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm  + 
-# yum install http://rpms.famillecollet.com/enterprise/remi-release-6.rpm+ # yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 
 + # yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm 
 </code> </code>
  
-{{ wiki:Epel.png }}+In order to use the **yum-config-manager** command you must have **yum-utils** installed, verify your installation with the following command:
  
-{{ wiki:Remi.png }}+**yum-config-manager** コマンドが利用できるようにするために、**yum-utils** がインストールされている必要があります。次のコマンドでインストールを確認します。
  
-次に、**yum-config-manager** コマンドが利用できるようにするために、**yum-utils** がインストルされていなければイストールします。+<code> 
 + yum install yum-utils 
 + 
 +</code> 
 + 
 +For install PHP 7.2 version: 
 + 
 +PHP バジョン 7.2 の場合:
  
 <code> <code>
-yum install yum-utils+yum-config-manager --disable 'remi-php*'
 yum-config-manager --enable remi-php72 yum-config-manager --enable remi-php72
 +
 </code> </code>
  
-{{ wiki:Yum_manager.png }}+For install PHP 7.4 version:
  
-最後に、php7.2 をインストルします。+PHP バジョン 7.4 の場合:
  
-  yum install 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+<code> 
 +yum-config-manager --disable 'remi-php*' 
 +yum-config-manager --enable remi-php74
  
-{{ wiki:Yum_Install_php.png }}+</code> 
 + 
 +Finally, install the selected PHP version: 
 + 
 +最後に、選択した PHP のバージョンをインストールします。 
 + 
 +<code> 
 +yum install 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 
 + 
 +</code> 
 + 
 +{{  :wiki:version_7_2_php.png  }} 
 + 
 +And check the installed version:
  
 そして、インストールしたバージョンを確認します。 そして、インストールしたバージョンを確認します。
  
-{{ wiki:Version_7_php.png }}+{{  :wiki:version_7_php.png  }} 
 + 
 +{{  :wiki:version_7_4_php.png  }} 
 + 
 +==== Rocky Linux 8 ==== 
 + 
 +PHP version by default is PHP 7.2, update to PHP 7.4 with: 
 + 
 +デフォルトの PHP バージョンは 7.2 です。PHP 7.4 へのアップデートは次のように行います。 
 + 
 +<code> 
 +dnf module reset php -y 
 +dnf module enable php:7.4 
 +dnf update -y 
 + 
 +</code>
  
-Pandora FMS がインストールされている場合は、PHP のバージョンが変わったので Pandora FMS コンソールを [[:ja:documentation:02_installation:01_installing|こちら]] に従って再インストールする必要があります。+Check new version with ''php -v'':
  
-インストール済の Pandora FMS コンソールパッケージとの不整合が表示された場合は、バージョン 729 の rpm コピーするか、以下のコマンドを実行します。+''php -v'' にて新しいバージョンを確認:
  
-  rpm -U --force *.rpm --nodeps+{{  :wiki:version_7_4_php_rocky_linux_8.png  }}
  
-== php.ini ==+===== php.ini ファイル =====
  
 There is also the possibility that during the upgrade process to php7, the php.ini file is affected. Here is an example of some of the data that php.ini must include: There is also the possibility that during the upgrade process to php7, the php.ini file is affected. Here is an example of some of the data that php.ini must include:
行 225: 行 272:
  
  
-=== CentOS におけるオフラインでの対応 === 
  
-In case the environment Pandora FMS does not have internet access or the security policy does not allow to install a third party repository, we have provided all the rpms needed for php update in our official support website (only for Enterprise clients) together with 729 version packages. 
- 
-Pandora FMS がインターネットへアクセスできない場合や、セキュリティポリシーでサードパーティリポジトリからインストールできない場合向けに、バージョン 729 と php のアップデートに必要な rpm パッケージを提供する公式サポートウェブサイトを提供しています(Enterprise 版ユーザのみ)。 
- 
-この場合のアップデート方法は次の通りです。 
- 
-1.- 我々のサポートサイトから RPM の入った tar.gz ファイルをダウンロード (RPM は、CentOS 6 x86、CentOS 6 x64、CentOS 7 x64 に対応しています) 
- 
-2.- tar.gz を任意のディレクトリに展開します。 
- 
-<code> 
-tar xvzf rpm-php7-centos7.tar.gz 
- 
-</code> 
- 
-3.- 展開したディレクトリへ行き、パッケージをアップデートするコマンドを実行します 
- 
-<code> 
- cd rpm-centos7-php7 
- rpm -U --force *.rpm 
-</code> 
- 
-インストールされている Pandora FMS コンソールパッケージとの互換性がないという表示された場合は、バージョン 729 の rpm をこのディレクトリにコピーするか、次のコマンドを実行してください。 
- 
-<code> 
-rpm -U --force *.rpm --nodeps 
- 
-</code> 
  
 [[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]] [[ja:documentation:start|Pandora FMS ドキュメント一覧に戻る]]