|
Home > Archive > Apache Server configuration support > January 2007 > Perl Works, CGI Doesn't
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Perl Works, CGI Doesn't
|
|
| vivek9856@gmail.com 2007-01-24, 1:55 am |
| 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.
| |
|
| 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 webservertalk.com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.webservertalk.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
| |
| vivek9856@gmail.com 2007-01-24, 1:18 pm |
| 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:
>
> in theApachedocs.
>
> --
>
> ----== Posted via webservertalk.com - Unlimited-Unrestricted-Secure Usenet News==----http://www.webservertalk.comThe #1 Newsgroup Service in the World! 120,000+ Newsgroups
> ----= East and West-Coast Server Farms - Total Privacy via Encryption =----
| |
|
| <vivek9856@gmail.com> schreef in bericht
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.
http://httpd.apache.org/docs/2.2/mo...terpretersource
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
|
|
|
|
|