C 的 fastcgi 库。

yehuiming@yehuiming-desktop:/$ apt-cache search fcgi

python-paste - tools for using a Web Server Gateway Interface stack

fcgiwrap - simple server to run CGI applications over FastCGI

libbio-asn1-entrezgene-perl - parser for NCBI Entrez Gene and NCBI Sequence records

libfcgi-dev - Header files of FastCGI

libfcgi-perl - helper module for FastCGI

libfcgi-procmanager-perl - Functions for managing FastCGI applications

libfcgi-ruby1.8 - FastCGI library for Ruby

libfcgi-ruby1.9.1 - FastCGI library for Ruby

libfcgi0ldbl - Shared library of FastCGI

看最后一个库就是了

然后安装

然后测试:
cgi-fcgi -connect 127.0.0.1:9000 /tmp/info.php
还要记得。设置环境变量:
SCRIPT_FILENAME
否则。。 php cgi 不知道执行啥脚本。。

你可能感兴趣的:(C++,c,C#,perl,Ruby)