注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

Bioinformatics home

 
 
 

日志

 
 

Windows + Apache + mod_perl + ASP + NET  

2008-11-18 23:07:26|  分类: 编程 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

Windows xp sp2 (32bit) + Apache 2.2 + Perl(5.10) + mod_perl 2.0 exclusively for examples. (just mark for myself)

Install mod_perl via the PPM utility (strongly recommended)

1. Everything is OK, such as Apache, ActiveState Perl.

2. In DOS, input "ppm install http://cpan.uwinnipeg.ca/PPMPackages/10xx/mod_perl.ppd"

Notice:

ppm install
       http://theoryx5.uwinnipeg.ca/ppms/mod_perl-2.0.ppd
for Apache/2.0

Ensure that the mod_perl version you are using matches that of Apache, make sure you are using at least Apache/2.0.47.

read more...

3. Do not care the tips,if it asks the path of mod_perl should be placed. Input the directory such as D:/Apache/modules

4. To enable mod_perl,put in the directives

LoadFile "C:/Perl/bin/perl510.dll"
LoadModule perl_module modules/mod_perl.so

Alias /modperl/ "D:/modPerlDemo/"
<Location /modperl>
    SetHandler perl-script
    PerlResponseHandler ModPerl::Registry
    Options +ExecCGI
    PerlOptions +ParseHeaders
</Location>

5. Restart Apache (Monitor works),or reboot pc.

6. Using ModPerl::Registry to speed up cgi scripts may be done as follows. Create a file, for example, D:/modPerlDemo/modperltest.pl, which will hold your scripts, such as

  ##  printenv -- demo CGI program which just prints its environment
  ##
  use strict;
  print "Content-type: text/html\n\n";
  print "<HTML><BODY><H3>Environment variables</H3><UL>";
  foreach (sort keys %ENV) {
    my $val = $ENV{$_};
    $val =~ s|\n|\\n|g;
    $val =~ s|"|\\"|g;
    print "<LI>$_ = \"${val}\"</LI>\n";
  }
  #sleep(10);
  print "</UL></BODY></HTML>";

Install mod_perl via the script

1. Download the script mpinstall and save it as, for example, mpinstall.

2. Invoking this as perl mpinstall on a command line will take you through a dialogue, based on your configuration.

see also step 4 above.

FAQ for mod_perl on Win32

Apache::ASP

Apache::ASP provides an Active Server Pages port to the Apache Web Server with Perl scripting only, so I give up.

or Instant ASP ?  ASP(vbs) hates paly on Apache(^_^).

Building Apache::ASP 2.57

ASP.Net

 

FAQ(about perl&web)

Q: I having a problem with a perl script that gathers and emails form data and then returns a Thank You page to the user. The problem may actually be with the browser as it works fine in IE6 and 7 but not in Mozilla firefox. In firefox, the Thank You page is just rendered as HTML code. However, the form data is still sent by email. Any ideas how I can fix this?

A:Check the MIME type of the thank you page. If you are outputting, for instance, text/plain , firefox will display it as text/plain. Internet Explorer, on the other hand, often tries to be "helpful" by guessing at the intended output, which is presumably text/html here.
Look for this line (or something like it) in your script:
print ("Content-type: text/html\n\n");

>>to be continued...

  评论这张
 
阅读(720)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017