wget [url]http://www.fastcgi.com/dist/mod_fastcgi-current.tar.gz[/url] * h9 E* e% v; M; k- `
tar -zxvf mod_fastcgi-current.tar.gz8 B2 Q; k ?+ b, K
cd mod_fastcgi-2.4.6/ ]8 L/ L/ K8 \; h/ x6 g( |
cp Makefile.AP2 Makefile0 }9 l3 M$ p/ ~2 p" [& C
make top_dir=/usr/lib64/httpd #我的主機是64bit& ]+ b+ h- n' K3 w3 P' V6 c' v3 p7 X
make install
複製代碼
當執行至 make top_dir=/usr/lib64/httpd 時出現錯誤 : No rule to make target '/usr/lib64/httpd/build/special.mk' ,原因是缺少套件「libtool」「httpd-devel」「apr-devel」及「apr」,於是; C. f/ u) o, e4 w6 V
yum install libtool httpd-devel apr apr-devel
複製代碼
再執行一次/ |. H& S# H0 p( h; M9 l
make top_dir=/usr/lib64/httpd2 g' f* @& N- G) [, b) k
make install
複製代碼
若安裝成功 , 應該會在 /usr/lib64/httpd/modules/ 下看見 mod_fastcgi.so$ E0 K* w" W' H9 R
《3》安裝php-fpm% N% t. ^0 c3 z& P# y$ ?7 A
php-fpm , 直接由 remi(http://www.pigo.idv.tw/archives/242) 安裝 , 例如 yum -–enablerepo=remi install php-fpm - A7 v7 @/ E# i3 [* F& r- T 〖環境設定〗:7 }: ~# |+ Z9 b
《1》Apache改為worker模式(效率較佳):修改/etc/sysconfig/httpd0 _- I+ l1 T: u- u8 V, W* }* P