Perl Works, CGI Doesn't

This is a discussion on Perl Works, CGI Doesn't within the Apache Web Server forums, part of the Web Server and Related Forums category; I have installed Apache 2.2.3 and Active Perl on my Windows server, and I am having some problems ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-24-2007
vivek9856@gmail.com
 
Posts: n/a
Default Perl Works, CGI Doesn't

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. 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.

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

vivek9856@gmail.com wrote in news:1169608021.389875.209650
@m58g2000cwm.googlegroups.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. 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.
>
>


I think you need to add .cgi as a valid script extention. See AddHandler
in the Apache docs.

--

----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
  #3 (permalink)  
Old 01-24-2007
vivek9856@gmail.com
 
Posts: n/a
Default Re: Perl Works, CGI Doesn't

I did add the handler to the httpd.conf file. I have

AddHandler cgi-script .pl
AddHandler cgi-script .cgi

On Jan 24, 5:03 am, Mark <mtaylor*@*lrim.com> wrote:
> vivek9...@gmail.com wrote in news:1169608021.389875.209650
> @m58g2000cwm.googlegroups.com:
>
> > I have installedApache2.2.3 andActivePerlon my Windows server, and
> > I am having some problems with executingPerl/CGI. I downloaded
> >CGI-Proxy and changed the shebang line to theperlexecutable. 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 .cgiextensions.I think you need to add .cgias a valid script extention. See AddHandler

> in theApachedocs.
>
> --
>
> ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----http://www.newsfeeds.comThe #1 Newsgroup Service in the World! 120,000+ Newsgroups
> ----= East and West-Coast Server Farms - Total Privacy via Encryption =----


  #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




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:42 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0