CentOS 5.5 php 5.3.3 fpm(FastCGI Process Manager)を使ってみる
fpm(FastCGI Process Manager)はphpでFastCGIを使うための実装の一つです。php 5.3.3でfpmが標準で使えるようになったので使ってみる。今まではphpにパッチを当てる必要がありました。ただし、標準になったとはいえ、PHPのコンパイル時にオプションの設定が必要なので、configureからやり直す必要がある。尚、fpmのコンパイルするにあたって予め1.4系のlibeventをインストールしておく必要があります。
コンパイル&インストール
- configure に『--enable-fpm』オプションを追加
[2010-09-04 09:07 UTC] m dot ghadam at gmail dot com
I get the same error when tried to compile httpd with both --with-apxs2 and --enable-fpm option.
OS : CentOS 5.5 i686
Removing one of them results successfull compilation.
設定
- php-fpm.confにphp.iniの形式で設定します。