インストール
# yum -y install php53u-common php53u-fpm php53u-mysql php53u-gd php53u-mbstring php53u-xml
Loaded plugins: fastestmirror, priorities, security
Loading mirror speeds from cached hostfile
* epel: ftp.iij.ad.jp
* ius: mirror.rackspace.com
* sl: ftp.riken.jp
* sl-security: ftp.riken.jp
103 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php53u-common.x86_64 0:5.3.10-1.ius.el6 will be installed
---> Package php53u-fpm.x86_64 0:5.3.10-1.ius.el6 will be installed
--> Processing Dependency: php53u = 5.3.10-1.ius.el6 for package: php53u-fpm-5.3.10-1.ius.el6.x86_64
---> Package php53u-gd.x86_64 0:5.3.10-1.ius.el6 will be installed
--> Processing Dependency: libt1.so.5()(64bit) for package: php53u-gd-5.3.10-1.ius.el6.x86_64
---> Package php53u-mbstring.x86_64 0:5.3.10-1.ius.el6 will be installed
---> Package php53u-mysql.x86_64 0:5.3.10-1.ius.el6 will be installed
--> Processing Dependency: php53u-pdo for package: php53u-mysql-5.3.10-1.ius.el6.x86_64
---> Package php53u-xml.x86_64 0:5.3.10-1.ius.el6 will be installed
--> Running transaction check
---> Package php53u.x86_64 0:5.3.10-1.ius.el6 will be installed
--> Processing Dependency: php53u-cli = 5.3.10-1.ius.el6 for package: php53u-5.3.10-1.ius.el6.x86_64
--> Processing Dependency: httpd-mmn = 20051115 for package: php53u-5.3.10-1.ius.el6.x86_64
--> Processing Dependency: libtool-ltdl for package: php53u-5.3.10-1.ius.el6.x86_64
---> Package php53u-pdo.x86_64 0:5.3.10-1.ius.el6 will be installed
---> Package t1lib.x86_64 0:5.1.2-6.el6_2.1 will be installed
--> Running transaction check
---> Package httpd.x86_64 0:2.2.15-15.sl6.1 will be installed
--> Processing Dependency: httpd-tools = 2.2.15-15.sl6.1 for package: httpd-2.2.15-15.sl6.1.x86_64
--> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-15.sl6.1.x86_64
---> Package libtool-ltdl.x86_64 0:2.2.6-15.5.el6 will be installed
---> Package php53u-cli.x86_64 0:5.3.10-1.ius.el6 will be installed
--> Running transaction check
---> Package apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 will be installed
---> Package httpd-tools.x86_64 0:2.2.15-15.sl6.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================
Package Arch Version Repository Size
===================================================================================================
Installing:
php53u-common x86_64 5.3.10-1.ius.el6 ius 525 k
php53u-fpm x86_64 5.3.10-1.ius.el6 ius 1.5 M
php53u-gd x86_64 5.3.10-1.ius.el6 ius 108 k
php53u-mbstring x86_64 5.3.10-1.ius.el6 ius 457 k
php53u-mysql x86_64 5.3.10-1.ius.el6 ius 80 k
php53u-xml x86_64 5.3.10-1.ius.el6 ius 102 k
Installing for dependencies:
apr-util-ldap x86_64 1.3.9-3.el6_0.1 sl 15 k
httpd x86_64 2.2.15-15.sl6.1 sl-security 812 k
httpd-tools x86_64 2.2.15-15.sl6.1 sl-security 69 k
libtool-ltdl x86_64 2.2.6-15.5.el6 sl 43 k
php53u x86_64 5.3.10-1.ius.el6 ius 1.5 M
php53u-cli x86_64 5.3.10-1.ius.el6 ius 2.9 M
php53u-pdo x86_64 5.3.10-1.ius.el6 ius 63 k
t1lib x86_64 5.1.2-6.el6_2.1 sl-security 159 k
Transaction Summary
===================================================================================================
Install 14 Package(s)
Total download size: 8.2 M
Installed size: 26 M
Downloading Packages:
(1/14): apr-util-ldap-1.3.9-3.el6_0.1.x86_64.rpm | 15 kB 00:00
(2/14): httpd-2.2.15-15.sl6.1.x86_64.rpm | 812 kB 00:00
(3/14): httpd-tools-2.2.15-15.sl6.1.x86_64.rpm | 69 kB 00:00
(4/14): libtool-ltdl-2.2.6-15.5.el6.x86_64.rpm | 43 kB 00:00
(5/14): php53u-5.3.10-1.ius.el6.x86_64.rpm | 1.5 MB 00:02
(6/14): php53u-cli-5.3.10-1.ius.el6.x86_64.rpm | 2.9 MB 00:03
(7/14): php53u-common-5.3.10-1.ius.el6.x86_64.rpm | 525 kB 00:01
(8/14): php53u-fpm-5.3.10-1.ius.el6.x86_64.rpm | 1.5 MB 00:02
(9/14): php53u-gd-5.3.10-1.ius.el6.x86_64.rpm | 108 kB 00:00
(10/14): php53u-mbstring-5.3.10-1.ius.el6.x86_64.rpm | 457 kB 00:01
(11/14): php53u-mysql-5.3.10-1.ius.el6.x86_64.rpm | 80 kB 00:00
(12/14): php53u-pdo-5.3.10-1.ius.el6.x86_64.rpm | 63 kB 00:00
(13/14): php53u-xml-5.3.10-1.ius.el6.x86_64.rpm | 102 kB 00:00
(14/14): t1lib-5.1.2-6.el6_2.1.x86_64.rpm | 159 kB 00:00
---------------------------------------------------------------------------------------------------
Total 389 kB/s | 8.2 MB 00:21
警告: rpmts_HdrFromFdno: ヘッダ V4 DSA/SHA1 Signature, key ID 9cd4953f: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
Importing GPG key 0x9CD4953F:
Userid : IUS Community Project
Package: ius-release-1.0-10.ius.el6.noarch (installed)
From : /etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : php53u-common-5.3.10-1.ius.el6.x86_64 1/14
Installing : t1lib-5.1.2-6.el6_2.1.x86_64 2/14
Installing : php53u-pdo-5.3.10-1.ius.el6.x86_64 3/14
Installing : php53u-cli-5.3.10-1.ius.el6.x86_64 4/14
Installing : libtool-ltdl-2.2.6-15.5.el6.x86_64 5/14
Installing : httpd-tools-2.2.15-15.sl6.1.x86_64 6/14
Installing : apr-util-ldap-1.3.9-3.el6_0.1.x86_64 7/14
Installing : httpd-2.2.15-15.sl6.1.x86_64 8/14
Installing : php53u-5.3.10-1.ius.el6.x86_64 9/14
Installing : php53u-fpm-5.3.10-1.ius.el6.x86_64 10/14
Installing : php53u-mysql-5.3.10-1.ius.el6.x86_64 11/14
Installing : php53u-gd-5.3.10-1.ius.el6.x86_64 12/14
Installing : php53u-mbstring-5.3.10-1.ius.el6.x86_64 13/14
Installing : php53u-xml-5.3.10-1.ius.el6.x86_64 14/14
Installed:
php53u-common.x86_64 0:5.3.10-1.ius.el6 php53u-fpm.x86_64 0:5.3.10-1.ius.el6
php53u-gd.x86_64 0:5.3.10-1.ius.el6 php53u-mbstring.x86_64 0:5.3.10-1.ius.el6
php53u-mysql.x86_64 0:5.3.10-1.ius.el6 php53u-xml.x86_64 0:5.3.10-1.ius.el6
Dependency Installed:
apr-util-ldap.x86_64 0:1.3.9-3.el6_0.1 httpd.x86_64 0:2.2.15-15.sl6.1
httpd-tools.x86_64 0:2.2.15-15.sl6.1 libtool-ltdl.x86_64 0:2.2.6-15.5.el6
php53u.x86_64 0:5.3.10-1.ius.el6 php53u-cli.x86_64 0:5.3.10-1.ius.el6
php53u-pdo.x86_64 0:5.3.10-1.ius.el6 t1lib.x86_64 0:5.1.2-6.el6_2.1
Complete!
設定
/etc/php.iniの基本設定。
post_max_size = 15M
upload_max_filesize = 15M
allow_url_fopen = On
[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
date.timezone = "Asia/Tokyo"
/etc/php-fpm.d/www.confを編集。
listen = /var/run/php-fpm.sock
listen.owner = nobody
listen.group = nobody
listen.mode = 0666
user = nginx
group = nginx
pm = dynamic
pm.max_children = 50
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 35
細かなチューニングは後で実施。
起動設定
自動起動に設定し、サービスを起動。
# chkconfig php-fpm on
# service php-fpm start
php-fpm を起動中: [ OK ]
0 件のコメント:
コメントを投稿