apache的安装过程省略,包含./configure ,prefix指定安装路径;make然后make install.
如何支持fastcgi?
1,下载mod_fastcgi.so,放到 modules目录下面;
2,修改con/httpd.conf,加上 LoadModule fastcgi_module modules/mod_fastcgi.so;
3,添加一虚拟主机,加上:
<VirtualHost *:80>
    ServerAdmin test@test.com
    DocumentRoot /usr/local/se_conn_01/xhtdocs/video.test.com/htdocs
    ServerName  video.test.com
    ScriptAlias /content "/usr/local/se_conn_01/xhtdocs/video.test.com/htdocs/cgi"
    <Directory />
         Options Includes FollowSymLinks
         AllowOverride None
    </Directory>
    ErrorLog logs/tdynamic.test.com-error_log
</VirtualHost>
FastCgiServer /usr/local/se_conn_01/xhtdocs/video.test.com/htdocs/cgi -processes 1

其中ScriptAlias 将访问路径跟cgi映射起来;
FastCgiServer默认起一个content cgi的子进程

值得一提的是新版本apache不支持fastcgi了。要安装2.0*版本