タグ

2011年11月22日のブックマーク (2件)

  • FastCGI環境を構築する - ぱせらんメモ

    長らくPHP屋をやっていたのでずっとmod_phpだったんだけど、いつかはFastCGIもやらんとなぁと思っていたところに、先日Tracでmod_fcgidを導入したのでおさらいしてみる。 以下はググって自分なりにまとめたものなので、認識が間違っているものもあるかもしれないので注意。 FastCGIのメリット CGIプログラムのプロセスが常駐する プログラムの起動オーバーヘッドがない データやリソースをメモリ上で永続化できる(DBコネクションとか) Webサーバに依存しない 公開されたプロトコル FastCGI対応サーバならインターフェイスは同じ Webサーバと独立したプロセスで動く*1 安定(プロセス的な意味で) セキュア(プロセス的な(ry) Webサーバが太らない(処理系のモジュールをロードしなくていいから) バランシングや分散がやりやすい(WebサーバとCGIプログラムを別々のサー

    FastCGI環境を構築する - ぱせらんメモ
  • mod_fcgid - Apache HTTP Server Version 2.5

    Summary Any program assigned to the handler fcgid-script is processed using the FastCGI protocol; mod_fcgid starts a sufficient number instances of the program to handle concurrent requests, and these programs remain running to handle further incoming requests. This is significantly faster than using the default mod_cgi or mod_cgid modules to launch the program upon each request. However, the prog