View Single Post

  #4 (permalink)  
Old 01-24-2007
HansH
 
Posts: n/a
Default Re: Perl Works, CGI Doesn't

<vivek9856@gmail.com> schreef in bericht
news:1169608021.389875.209650@m58g2000cwm.googlegr oups.com...
>I have installed Apache 2.2.3 and Active Perl on my Windows server, and
> I am having some problems with executing Perl/CGI. I downloaded
> CGI-Proxy and changed the shebang line to the perl executable.

http://httpd.apache.org/docs/2.2/mod...erpretersource
Use this directive and stop fidling the shebang back and forth between *nix
and windosws.

> ... When I
> go to my browser and execute the script (nph-proxy.cgi), I get either a
> long timeout or a blank page. After trying to reload the page 5 or 6
> times, the server crashes. However, if I change the file name to
> nph-proxy.pl, the script executes with no hitches. I wanted to know why
> I am not able to use .cgi extensions.

Scrub your config for any directive involving eithe .pl or.cgi files.

Might .pl be handled by mod_perl, where .cgi is well just cgi?

HansH