PHP インストールTips
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
[[言語関連]]
目次~
#contents
*概要 [#yfed931f]
PHPの環境管理全般~
*バージョン管理 [#e17e56e1]
**CentOS8でPHP7.3を使う [#i98ff567]
***環境情報 [#c5cbc7f0]
|OS|CentOS Stream release 8|
***手順 [#j49ea4ad]
-1. 現在のPHPバージョンを確認
# dnf module list php
--術力結果
Repository google-chrome is listed more than once in the...
Last metadata expiration check: 2:15:45 ago on Mon 14 No...
CentOS Stream 8 - AppStream
Name Stream Profi...
php 7.2 [d][e] commo...
php 7.3 commo...
php 7.4 commo...
php 8.0 commo...
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
-2. バージョン指定をリセット
# dnf module reset php
--出力結果
Repository google-chrome is listed more than once in the...
Last metadata expiration check: 2:15:59 ago on Mon 14 No...
Dependencies resolved.
========================================================...
Package Architecture ...
========================================================...
Resetting modules:
php ...
Transaction Summary
========================================================...
Is this ok [y/N]: y
Complete!
-3. バージョンを7.3に変更
# dnf module enable php:7.3
--出力結果
Repository google-chrome is listed more than once in the...
Last metadata expiration check: 2:16:09 ago on Mon 14 No...
Dependencies resolved.
========================================================...
Package Architecture ...
========================================================...
Enabling module streams:
php ...
Transaction Summary
========================================================...
Is this ok [y/N]: y
Complete!
-4. PHPをバージョンアップ
# dnf module -y update php:7.3
--出力結果
Repository google-chrome is listed more than once in the...
Last metadata expiration check: 2:16:21 ago on Mon 14 No...
Dependencies resolved.
========================================================...
Package Architecture Versi...
========================================================...
Upgrading:
libzip x86_64 1.5.2...
php x86_64 7.3.2...
php-bcmath x86_64 7.3.2...
php-cli x86_64 7.3.2...
php-common x86_64 7.3.2...
php-fpm x86_64 7.3.2...
php-gd x86_64 7.3.2...
php-intl x86_64 7.3.2...
php-json x86_64 7.3.2...
php-ldap x86_64 7.3.2...
php-mbstring x86_64 7.3.2...
php-mysqlnd x86_64 7.3.2...
php-pdo x86_64 7.3.2...
php-pecl-zip x86_64 1.15....
php-xml x86_64 7.3.2...
Transaction Summary
========================================================...
Upgrade 15 Packages
(以下略)
-5. バージョンを確認
# php -v
--出力結果
PHP 7.3.20 (cli) (built: Jul 7 2020 07:53:49) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.20, Copyright (c) 1998-2018 Zend Techno...
終了行:
[[言語関連]]
目次~
#contents
*概要 [#yfed931f]
PHPの環境管理全般~
*バージョン管理 [#e17e56e1]
**CentOS8でPHP7.3を使う [#i98ff567]
***環境情報 [#c5cbc7f0]
|OS|CentOS Stream release 8|
***手順 [#j49ea4ad]
-1. 現在のPHPバージョンを確認
# dnf module list php
--術力結果
Repository google-chrome is listed more than once in the...
Last metadata expiration check: 2:15:45 ago on Mon 14 No...
CentOS Stream 8 - AppStream
Name Stream Profi...
php 7.2 [d][e] commo...
php 7.3 commo...
php 7.4 commo...
php 8.0 commo...
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
-2. バージョン指定をリセット
# dnf module reset php
--出力結果
Repository google-chrome is listed more than once in the...
Last metadata expiration check: 2:15:59 ago on Mon 14 No...
Dependencies resolved.
========================================================...
Package Architecture ...
========================================================...
Resetting modules:
php ...
Transaction Summary
========================================================...
Is this ok [y/N]: y
Complete!
-3. バージョンを7.3に変更
# dnf module enable php:7.3
--出力結果
Repository google-chrome is listed more than once in the...
Last metadata expiration check: 2:16:09 ago on Mon 14 No...
Dependencies resolved.
========================================================...
Package Architecture ...
========================================================...
Enabling module streams:
php ...
Transaction Summary
========================================================...
Is this ok [y/N]: y
Complete!
-4. PHPをバージョンアップ
# dnf module -y update php:7.3
--出力結果
Repository google-chrome is listed more than once in the...
Last metadata expiration check: 2:16:21 ago on Mon 14 No...
Dependencies resolved.
========================================================...
Package Architecture Versi...
========================================================...
Upgrading:
libzip x86_64 1.5.2...
php x86_64 7.3.2...
php-bcmath x86_64 7.3.2...
php-cli x86_64 7.3.2...
php-common x86_64 7.3.2...
php-fpm x86_64 7.3.2...
php-gd x86_64 7.3.2...
php-intl x86_64 7.3.2...
php-json x86_64 7.3.2...
php-ldap x86_64 7.3.2...
php-mbstring x86_64 7.3.2...
php-mysqlnd x86_64 7.3.2...
php-pdo x86_64 7.3.2...
php-pecl-zip x86_64 1.15....
php-xml x86_64 7.3.2...
Transaction Summary
========================================================...
Upgrade 15 Packages
(以下略)
-5. バージョンを確認
# php -v
--出力結果
PHP 7.3.20 (cli) (built: Jul 7 2020 07:53:49) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.20, Copyright (c) 1998-2018 Zend Techno...
ページ名: