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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 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 =---- |
|
|||
|
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 =---- |
|
|||
|
<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 |