如何安装FastCGI

如何安装FastCGI

日期:2005-12-11 19:51:00  点击:349  作者:  来源:

Intro

此文并非介绍FastCGI的好处,只是简单的介绍我的一次安装过程。
我的Env为 Win2000+SP4, Apache/2.0.50 (Win32) mod_perl/1.99_15-dev Perl/v5.8.4 mod_ssl/2.0.50 OpenSSL/0.9.7d PHP/4.3.7
$Apache_dir = "C:/Apache2"; $Perl_dir = "C:/usr";

Step by step

  1. http://www.fastcgi.com/dist/ 下载mod_fastcgi-2.4.2-AP20.dll(如果是Apache版本为1.3,下载mod_fastcgi-2.4.2-AP13.dll)。
  2. 遵从http://www.fastcgi.com/mod_fastcgi/INSTALL最下面的一段话:
    To install mod_fastcgi (built above or retrieved from 
    http://fastcgi.com/dist/):
    
      1. Copy the mod_fastcgi.dll to the Apache modules directory 
         (e.g. C:Apachemodules)
    
      2. Edit the httpd configurion file (e.g. C:Apacheconfhttpd.conf)
         and add a line like:
    
         LoadModule fastcgi_module modules/mod_fastcgi.dll
    
         Note that if there"s a ClearModuleList directive after new entry,
         you"ll have to either move the LoadModule after the ClearModuleList
         or add (have a look at how the other modules are handled):
    
         AddModule mod_fastcgi.c
    
      3. Edit the httpd configuration file(s) to enable your FastCGI
         application(s).  See docs/mod_fastcgi.html for details.
     数据挖掘实验室 
    简单翻译为
      1. 拷贝 mod_fastcgi.dll(我们下来的mod_fastcgi-2.4.2-AP*.dll,将其改名) 至Apache modules(模块)目录
         (如 C:Apachemodules)
    
      2. 编辑httpd配置文件 (如 C:Apacheconfhttpd.conf)
         然后增加如下一行:
    
         LoadModule fastcgi_module modules/mod_fastcgi.dll
    
         注意如果在此句以后出现 ClearModuleList 指示/directive,你必须要么移动LoadModule到ClearModuleList下面或增加(参考其他handled模块):
    
         AddModule mod_fastcgi.c
    
      3. 编辑httpd配置文件去启动你的FastCGI程序。更详细的请参考 docs/mod_fastcgi.html
     

    数据挖掘论坛

  3. visit http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html, 参考此文档在httpd.conf里增加:
    
    <Directory "E:/Fayland/fcgi-bin">
    	SetHandler fastcgi-script
    	AddHandler fastcgi-script fcg fcgi fpl
    	Options +ExecCGI
    </Directory>
     数据挖掘论坛 
  4. 不要下载FCGI.pm-0.64-win32-x86.zip,可以cpan或ppm FCGI安装FCGI.pm和相关文件。
  5. 测试代码:(E:Faylandfcgi-bin est.fpl)
    #!/usr/bin/perl
    use FCGI;
    use strict;
    
    my $count = 0;
    my $request = FCGI::Request();
    
    while($request->Accept() >= 0) {
    	$count++;
    	print "Content-type:text/html
    
    ";
    	print "total request $count";
    }
     数据挖掘实验室 
    visit: http://localhost/fcgi-bin/test.fpl.

Refer

[数据挖掘专家] [数据挖掘研究院] [数据挖掘论坛] [数据挖掘实验室]
上一篇:快速开始Perl XML:接口篇
下一篇:如何将Perl代码着色
最新评论共有 0 位网友发表了评论 , 查看所有评论
发表评论( 不能超过250字,需审核,请自觉遵守互联网相关政策法规。 )
匿名?
数据挖掘网站导航 数据挖掘论坛导航
  • 数据挖掘工具
  • 数据挖掘论坛
  • DataCruncher - Cognos
  • MineSet - MathSoft
  • Intelligent Miner - GainSmarts
  • Sqlserver - SAS - Clementine
  • CART - Weka - WizSoft
  • NeuroShell - ModelQuest
  • data mining tools - Darwin
  • 数据挖掘交友
  • 数据挖掘博客
  • 数据挖掘工具
  • 数据挖掘资源
  • 数据挖掘技术算法
  • 数据挖掘相关期刊、会议
  • 研究院联盟合作专区
  • 数据挖掘基础与相关技术
  • 数据挖掘厂商与就业
  • 数据挖掘研究者乐园
  • 知名厂商数据挖掘工具资料
  • 国内数据挖掘实验室
  • Foreign Data Mining Lab
  • 热点关注
  • Perl 常用函数
  • Perl直接入门详尽指南
  • 用Perl生成随机密码
  • When perl is not quite fast enough
  • Perl简单模块指南
  • Perl DBI连接MySQL数据库
  • 我对 Catalyst 的理解和介绍
  • cgi学习简明教程
  • 我对 Catalyst 的理解和介绍
  • 如何使用strict和warnings
  • 论坛最新话题
  • Foundations of Statistical Natural Langu
  • Game Theory meet Data Mining: A Recent P
  • System Building: How does it help or hin
  • 数据挖掘与Clementine培训
  • 新手报到
  • 求 SASEM 客户流失预测分析
  • 数据挖掘工程师/搜索研究院—北京——无线
  • 数据挖掘入门介绍(如何着手数据挖掘)
  • Information Overload Survey Results
  • The INEX 2005 Workshop on Element Retrie
  • 相关资讯
    数据挖掘实验室资料
  • 数据挖掘博客地址
  • 数据挖掘实验室网站地址
  • Prepare for Medicare audits by using dat
  • 注册成为SAS用户与爱好者俱乐部会员
  • 水南梅
  • 明日烟
  • 新人报道
  • 下载
  • 厦门服务器托管,450元/月—0592-5177319 高
  • 买空间送域名--0592-5177319 高静