CGIを使えるようにする

  • nginxはそのままだとCGI使えない…
    • それfastcgiでなんとかするよ!
# yum install perl-FCGI
# rpm -q perl-FCGI
perl-FCGI-0.68-1.el5.rf

/usr/bin/fastcgi-wrapper.pl 作成
/etc/rc.d/init.d/perl-fastcgi 作成
  • ポイント
    • Error: No such CGI app - xxxxx may not exist or is not executable by this process.と出る。
      • nginx.conf のパスが違ってる,もしくは実行権限が無い。location, root, fastcgi_paramの関係に注意。
    • fastcgi-wrapper.plで定義してあるポートとnginx.confのポートは合わせておく。
    • fastcgi-wrapper.plのサービスは/etc/rc.d/init.d/perl-fastcgiとして登録するが、whileで回ってるだけ。