Closed blueb901 closed 9 years ago
[hoge@moge]# yum install php-fpm php-mbstring
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.tsukuba.wide.ad.jp
* extras: ftp.tsukuba.wide.ad.jp
* updates: ftp.tsukuba.wide.ad.jp
Resolving Dependencies
--> Running transaction check
---> Package php-fpm.x86_64 0:5.4.16-36.el7_1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-36.el7_1 for package: php-fpm-5.4.16-36.el7_1.x86_64
---> Package php-mbstring.x86_64 0:5.4.16-36.el7_1 will be installed
--> Running transaction check
---> Package php-common.x86_64 0:5.4.16-36.el7_1 will be installed
--> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-36.el7_1.x86_64
--> Running transaction check
---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================================================================================
Installing:
php-fpm x86_64 5.4.16-36.el7_1 updates 1.4 M
php-mbstring x86_64 5.4.16-36.el7_1 updates 503 k
Installing for dependencies:
libzip x86_64 0.10.1-8.el7 base 48 k
php-common x86_64 5.4.16-36.el7_1 updates 563 k
Transaction Summary
=============================================================================================================================================================================================================================================
Install 2 Packages (+2 Dependent packages)
Total download size: 2.5 M
Installed size: 9.6 M
Is this ok [y/d/N]: N
Exiting on user command
Your transaction was saved, rerun it with:
yum load-transaction /tmp/yum_save_tx.2015-08-17.22-00.ZbtChY.yumtx
普通に追加しようとすると php5.4になろうとする。 php5.6の導入方法はないかな。
php5.6をインストールしようとすると、Remiという情報が出てくる
外部レポジトリを導入すると上位ベンダーやCentOSとの互換性が失われる他、標準パッケージの構成では起こりえない問題が発生することがあります。個人の責に基づき導入するようにしてください。
比較的新しいphpパッケージをCentOS 5.5までのバージョンで使うには外部レポジトリを使うしかない。ここではRemiパッケージを導入して、標準レポジトリではインストールできないphpパッケージやMySQLなどをyumでインストールできるようにする。
なるほど…。 標準構成でインストールしてしまいたいので、php5.4で我慢する。
[hoge@moge]# yum list installed | grep php
php関連は何も入ってない
[hoge@moge]# yum install php-fpm php-mbstring php-mysql
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.tsukuba.wide.ad.jp
* extras: ftp.tsukuba.wide.ad.jp
* updates: ftp.tsukuba.wide.ad.jp
Resolving Dependencies
--> Running transaction check
---> Package php-fpm.x86_64 0:5.4.16-36.el7_1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-36.el7_1 for package: php-fpm-5.4.16-36.el7_1.x86_64
---> Package php-mbstring.x86_64 0:5.4.16-36.el7_1 will be installed
---> Package php-mysql.x86_64 0:5.4.16-36.el7_1 will be installed
--> Processing Dependency: php-pdo(x86-64) = 5.4.16-36.el7_1 for package: php-mysql-5.4.16-36.el7_1.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.4.16-36.el7_1 will be installed
--> Processing Dependency: libzip.so.2()(64bit) for package: php-common-5.4.16-36.el7_1.x86_64
---> Package php-pdo.x86_64 0:5.4.16-36.el7_1 will be installed
--> Running transaction check
---> Package libzip.x86_64 0:0.10.1-8.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================================================================================
Installing:
php-fpm x86_64 5.4.16-36.el7_1 updates 1.4 M
php-mbstring x86_64 5.4.16-36.el7_1 updates 503 k
php-mysql x86_64 5.4.16-36.el7_1 updates 99 k
Installing for dependencies:
libzip x86_64 0.10.1-8.el7 base 48 k
php-common x86_64 5.4.16-36.el7_1 updates 563 k
php-pdo x86_64 5.4.16-36.el7_1 updates 97 k
Transaction Summary
=============================================================================================================================================================================================================================================
Install 3 Packages (+3 Dependent packages)
Total download size: 2.7 M
Installed size: 10 M
Is this ok [y/d/N]: y
Downloading packages:
(1/6): libzip-0.10.1-8.el7.x86_64.rpm | 48 kB 00:00:00
(2/6): php-mysql-5.4.16-36.el7_1.x86_64.rpm | 99 kB 00:00:02
(3/6): php-pdo-5.4.16-36.el7_1.x86_64.rpm | 97 kB 00:00:03
(4/6): php-common-5.4.16-36.el7_1.x86_64.rpm | 563 kB 00:00:08
(5/6): php-mbstring-5.4.16-36.el7_1.x86_64.rpm | 503 kB 00:00:08
(6/6): php-fpm-5.4.16-36.el7_1.x86_64.rpm | 1.4 MB 00:00:12
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 217 kB/s | 2.7 MB 00:00:12
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libzip-0.10.1-8.el7.x86_64 1/6
Installing : php-common-5.4.16-36.el7_1.x86_64 2/6
Installing : php-pdo-5.4.16-36.el7_1.x86_64 3/6
Installing : php-mysql-5.4.16-36.el7_1.x86_64 4/6
Installing : php-fpm-5.4.16-36.el7_1.x86_64 5/6
Installing : php-mbstring-5.4.16-36.el7_1.x86_64 6/6
Verifying : php-fpm-5.4.16-36.el7_1.x86_64 1/6
Verifying : php-pdo-5.4.16-36.el7_1.x86_64 2/6
Verifying : libzip-0.10.1-8.el7.x86_64 3/6
Verifying : php-mbstring-5.4.16-36.el7_1.x86_64 4/6
Verifying : php-mysql-5.4.16-36.el7_1.x86_64 5/6
Verifying : php-common-5.4.16-36.el7_1.x86_64 6/6
Installed:
php-fpm.x86_64 0:5.4.16-36.el7_1 php-mbstring.x86_64 0:5.4.16-36.el7_1 php-mysql.x86_64 0:5.4.16-36.el7_1
Dependency Installed:
libzip.x86_64 0:0.10.1-8.el7 php-common.x86_64 0:5.4.16-36.el7_1 php-pdo.x86_64 0:5.4.16-36.el7_1
Complete!
インストール完了
[hoge@moge]# yum list installed | grep php
php-common.x86_64 5.4.16-36.el7_1 @updates
php-fpm.x86_64 5.4.16-36.el7_1 @updates
php-mbstring.x86_64 5.4.16-36.el7_1 @updates
php-mysql.x86_64 5.4.16-36.el7_1 @updates
php-pdo.x86_64 5.4.16-36.el7_1 @updates
ちゃんと入ってる。
CentOS7にnginxをインストールする #6