想說就說想寫就寫部落格

Sunday, November 21, 2010

mod_fcgi vs. mod_fastcgi while using php5.3.3

網路上完全找不到這方面資料 ... 而且找到的都是錯的...

經過兩天的奮戰...終於建立了

PHP-FPM(php5.3.3) + apache 2.2.17 + mod_fastcgi 的設定

我只想說 ...

Don't waste your time on mod_fcgid, it doesn't match php 5.3.3, it's a shit!!

Use mod_fastcgi's FastCgiExternalServer to point to PHP-FPM, no more wrapper script please!!

Most of apache config examples are outdated or wrong, or copy from other wrong articles.

PHP-FPM is a daemon and mod_fcgid's official site(http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html) is not talking about PHP-FPM, it is

talking about php patched with fastcgi library http://www.fastcgi.com/drupal/node/5?q=node/10.

PHP-FPM is native in PHP since 5.3.3, so the mod_fcgid is not the choice for PHP user at the mean time, unless it provide Directive similiar to mod_fastcgi's FastCgiExternalServer.

Hope this help other guy confusing by FastCGI in Apache + PHP pattern. ( mod_fastcgi, mod_fcgid, PHP-FPM, PHP with FastCGI lib...so, it's a mess )

0 Comments:

Post a Comment

<< Home