PHP5.4がremi-testに来たのでyumで入れてみた

NO IMAGE

yum派なので今か今かと待っていましたが、remi-testに来たのでとりあえず入れてみました!

2012/03/12追記

現在はremi-testを使わなくてもremiでPHP5.4をインストールすることができます

$ sudo yum update php* --enablerepo=remi-test
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.nara.wide.ad.jp
 * epel: ftp.kddilabs.jp
 * extras: ftp.nara.wide.ad.jp
 * remi-test: remi-mirror.dedipower.com
 * updates: ftp.nara.wide.ad.jp
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package php-cli.x86_64 0:5.4.0-1.el5.remi set to be updated
---> Package php-common.x86_64 0:5.4.0-1.el5.remi set to be updated
--> Processing Dependency: libcurl.so.4()(64bit) for package: php-common
---> Package php-fpm.x86_64 0:5.4.0-1.el5.remi set to be updated
---> Package php-gd.x86_64 0:5.4.0-1.el5.remi set to be updated
---> Package php-mbstring.x86_64 0:5.4.0-1.el5.remi set to be updated
---> Package php-mysql.x86_64 0:5.4.0-1.el5.remi set to be updated
---> Package php-pdo.x86_64 0:5.4.0-1.el5.remi set to be updated
---> Package php-pecl-apc.x86_64 0:3.1.9-6.svn323587.el5.remi set to be updated
--> Running transaction check
---> Package libcurl.x86_64 0:7.21.7-5.el5.remi.2 set to be updated
--> Processing Dependency: libssh2 >= 1.2.7 for package: libcurl
--> Processing Dependency: libssh2.so.1()(64bit) for package: libcurl
--> Running transaction check
---> Package libssh2.x86_64 0:1.2.7-1.el5.remi set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================
 Package                             Arch                          Version                                            Repository                        Size
=============================================================================================================================================================
Updating:
 php-cli                             x86_64                        5.4.0-1.el5.remi                                   remi-test                        2.9 M
 php-common                          x86_64                        5.4.0-1.el5.remi                                   remi-test                        975 k
 php-fpm                             x86_64                        5.4.0-1.el5.remi                                   remi-test                        1.5 M
 php-gd                              x86_64                        5.4.0-1.el5.remi                                   remi-test                        211 k
 php-mbstring                        x86_64                        5.4.0-1.el5.remi                                   remi-test                        1.2 M
 php-mysql                           x86_64                        5.4.0-1.el5.remi                                   remi-test                        176 k
 php-pdo                             x86_64                        5.4.0-1.el5.remi                                   remi-test                        122 k
 php-pecl-apc                        x86_64                        3.1.9-6.svn323587.el5.remi                         remi-test                        172 k
Installing for dependencies:
 libcurl                             x86_64                        7.21.7-5.el5.remi.2                                remi-test                        202 k
 libssh2                             x86_64                        1.2.7-1.el5.remi                                   remi-test                         82 k

Transaction Summary
=============================================================================================================================================================
Install       2 Package(s)
Upgrade       8 Package(s)

Total download size: 7.4 M
Is this ok [y/N]: y
Downloading Packages:
(1/10): libssh2-1.2.7-1.el5.remi.x86_64.rpm                                                                                           |  82 kB     00:01     
(2/10): php-pdo-5.4.0-1.el5.remi.x86_64.rpm                                                                                           | 122 kB     00:01     
(3/10): php-pecl-apc-3.1.9-6.svn323587.el5.remi.x86_64.rpm                                                                            | 172 kB     00:01     
(4/10): php-mysql-5.4.0-1.el5.remi.x86_64.rpm                                                                                         | 176 kB     00:01     
(5/10): libcurl-7.21.7-5.el5.remi.2.x86_64.rpm                                                                                        | 202 kB     00:01     
(6/10): php-gd-5.4.0-1.el5.remi.x86_64.rpm                                                                                            | 211 kB     00:01     
(7/10): php-common-5.4.0-1.el5.remi.x86_64.rpm                                                                                        | 975 kB     00:02     
(8/10): php-mbstring-5.4.0-1.el5.remi.x86_64.rpm                                                                                      | 1.2 MB     00:03     
(9/10): php-fpm-5.4.0-1.el5.remi.x86_64.rpm                                                                                           | 1.5 MB     00:03     
(10/10): php-cli-5.4.0-1.el5.remi.x86_64.rpm                                                                                          | 2.9 MB     00:04     
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                        275 kB/s | 7.4 MB     00:27     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : libssh2                                                                                                                              1/18 
  Installing     : libcurl                                                                                                                              2/18 

WARNING : These php-* RPM are not official Fedora/Redhat build and
overrides the official ones. Don't file bugs on Fedora Project nor Redhat.

Use dedicated forums http://forums.famillecollet.com/

  Updating       : php-common                                                                                                                           3/18 
warning: /etc/php.ini created as /etc/php.ini.rpmnew
  Updating       : php-cli                                                                                                                              4/18 
  Updating       : php-pdo                                                                                                                              5/18 
  Updating       : php-mbstring                                                                                                                         6/18 
  Updating       : php-pecl-apc                                                                                                                         7/18 
  Updating       : php-mysql                                                                                                                            8/18 
  Updating       : php-fpm                                                                                                                              9/18 
warning: /etc/php-fpm.d/www.conf created as /etc/php-fpm.d/www.conf.rpmnew
warning: user apache does not exist - using root
  Updating       : php-gd                                                                                                                              10/18 
  Cleanup        : php-cli                                                                                                                             11/18 
  Cleanup        : php-pdo                                                                                                                             12/18 
  Cleanup        : php-mbstring                                                                                                                        13/18 
  Cleanup        : php-common                                                                                                                          14/18 
  Cleanup        : php-pecl-apc                                                                                                                        15/18 
  Cleanup        : php-mysql                                                                                                                           16/18 
  Cleanup        : php-fpm                                                                                                                             17/18 
  Cleanup        : php-gd                                                                                                                              18/18 

Dependency Installed:
  libcurl.x86_64 0:7.21.7-5.el5.remi.2                                           libssh2.x86_64 0:1.2.7-1.el5.remi                                          

Updated:
  php-cli.x86_64 0:5.4.0-1.el5.remi             php-common.x86_64 0:5.4.0-1.el5.remi                         php-fpm.x86_64 0:5.4.0-1.el5.remi              
  php-gd.x86_64 0:5.4.0-1.el5.remi              php-mbstring.x86_64 0:5.4.0-1.el5.remi                       php-mysql.x86_64 0:5.4.0-1.el5.remi            
  php-pdo.x86_64 0:5.4.0-1.el5.remi             php-pecl-apc.x86_64 0:3.1.9-6.svn323587.el5.remi            

Complete!
[email protected]~[904]$ php -v
PHP 5.4.0 (cli) (built: Mar  2 2012 17:12:35) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

cocokamoの乗っかってるサーバーですがとりあえずは何のエラーもなく動いているようです

あまり参考にはならないけどPHP5.3.10でのベンチマーク

$ ab -n 10 -c 10 http://www.cocokamo.com/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking www.cocokamo.com (be patient).....done


Server Software:        nginx
Server Hostname:        www.cocokamo.com
Server Port:            80

Document Path:          /
Document Length:        100616 bytes

Concurrency Level:      10
Time taken for tests:   6.573262 seconds
Complete requests:      10
Failed requests:        9
   (Connect: 0, Length: 9, Exceptions: 0)
Write errors:           0
Total transferred:      1006229 bytes
HTML transferred:       1004349 bytes
Requests per second:    1.52 [#/sec] (mean)
Time per request:       6573.263 [ms] (mean)
Time per request:       657.326 [ms] (mean, across all concurrent requests)
Transfer rate:          149.39 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        1    1   0.8      1       3
Processing:  2195 6040 1357.0   6487    6570
Waiting:     1537 5860 1535.8   6447    6509
Total:       2197 6041 1356.8   6488    6571

Percentage of the requests served within a certain time (ms)
  50%   6488
  66%   6544
  75%   6549
  80%   6568
  90%   6571
  95%   6571
  98%   6571
  99%   6571
 100%   6571 (longest request)

PHP5.4でのベンチマーク

$ ab -n 10 -c 10 http://www.cocokamo.com/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/

Benchmarking www.cocokamo.com (be patient).....done


Server Software:        nginx
Server Hostname:        www.cocokamo.com
Server Port:            80

Document Path:          /
Document Length:        100621 bytes

Concurrency Level:      10
Time taken for tests:   4.147600 seconds
Complete requests:      10
Failed requests:        9
   (Connect: 0, Length: 9, Exceptions: 0)
Write errors:           0
Total transferred:      1004438 bytes
HTML transferred:       1002558 bytes
Requests per second:    2.41 [#/sec] (mean)
Time per request:       4147.600 [ms] (mean)
Time per request:       414.760 [ms] (mean, across all concurrent requests)
Transfer rate:          236.28 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    1   1.3      2       3
Processing:  2815 3542 491.7   3734    4144
Waiting:     2801 3521 491.6   3721    4130
Total:       2818 3544 491.0   3735    4146

Percentage of the requests served within a certain time (ms)
  50%   3735
  66%   3861
  75%   3917
  80%   4054
  90%   4146
  95%   4146
  98%   4146
  99%   4146
 100%   4146 (longest request)

早く色々試したいですね〜!