$ yum install mod_fastcgi
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* epel: ftp.iij.ad.jp
* ius: mirror.rackspace.hk
* rpmforge: apt.sw.be
* sl: ftp.riken.jp
* sl-security: ftp.riken.jp
243 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mod_fastcgi.x86_64 0:2.4.6-1.el6.rf will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================
Package Arch Version Repository Size
=======================================================================================
Installing:
mod_fastcgi x86_64 2.4.6-1.el6.rf rpmforge 115 k
Transaction Summary
=======================================================================================
Install 1 Package(s)
Total download size: 115 k
Installed size: 356 k
Is this ok [y/N]: y
Downloading Packages:
mod_fastcgi-2.4.6-1.el6.rf.x86_64.rpm | 115 kB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : mod_fastcgi-2.4.6-1.el6.rf.x86_64 1/1
Installed:
mod_fastcgi.x86_64 0:2.4.6-1.el6.rf
Complete!
$ yum install php-fpm
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* epel: ftp.iij.ad.jp
* ius: mirror.rackspace.hk
* rpmforge: ftp-stud.fht-esslingen.de
* sl: ftp.riken.jp
* sl-security: ftp.riken.jp
243 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php53u-fpm.x86_64 0:5.3.8-4.ius.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=======================================================================================
Package Arch Version Repository Size
=======================================================================================
Installing:
php53u-fpm x86_64 5.3.8-4.ius.el6 ius 1.5 M
Transaction Summary
=======================================================================================
Install 1 Package(s)
Total download size: 1.5 M
Installed size: 4.0 M
Is this ok [y/N]: y
Downloading Packages:
php53u-fpm-5.3.8-4.ius.el6.x86_64.rpm | 1.5 MB 00:14
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : php53u-fpm-5.3.8-4.ius.el6.x86_64 1/1
Installed:
php53u-fpm.x86_64 0:5.3.8-4.ius.el6
Complete!
LoadModule fastcgi_module modules/mod_fastcgi.so
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
FastCGIExternalServer /var/www/cgi-bin/php-fpm -socket /var/run/php-fpm.sock
AddHandler php-fastcgi .php
Action php-fastcgi /cgi-bin/php-fpm
/var/www/cgi-bin/php-fpmは存在する必要はない。ソケットの設定は、php-fpm側と合わせておく。
php.confを無効にする。
$ mv php.conf php.conf.bak
0 件のコメント:
コメントを投稿