Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 27250 invoked by uid 500); 19 May 2003 21:04:45 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 27236 invoked from network); 19 May 2003 21:04:45 -0000 Received: from spitfire.velocet.net (216.138.223.227) by daedalus.apache.org with SMTP; 19 May 2003 21:04:45 -0000 Received: from mail.gej-it.com (gej-it.com [216.138.220.213]) by spitfire.velocet.net (Postfix) with ESMTP id 7D15A4B7CA2 for ; Mon, 19 May 2003 17:04:46 -0400 (EDT) Received: from jeff ([216.138.220.213]) by gej-it.com ([216.138.220.213]) with SMTP (MDaemon.PRO.v6.7.9.R) for ; Mon, 19 May 2003 17:04:22 -0400 From: "Jeff Cohen" To: Date: Mon, 19 May 2003 17:03:48 -0400 Message-ID: <000001c31e4a$252ac900$0300000a@gejit.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4510 Importance: Normal In-Reply-To: <003e01c31e49$37a4f7f0$56fd1f42@z0e8q1> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Lookup-Warning: EHLO lookup on jeff does not match 216.138.220.213 X-MDRemoteIP: 216.138.220.213 X-Return-Path: support@gej-it.com X-MDaemon-Deliver-To: users@httpd.apache.org X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: RE: [users@httpd] CGI hangs on WinXP Hi David, I would say that you are having problem executing the .pl scripts in the cgi-bin folder, make sure you have ScriptAlias "c:/program files/apache group/apache2/cgi-bin" in your httpd.conf file and in the container, make sure that = you have: AddHandler cgi-script .cgi .pl It's needed sometimes. All the best, Jeff Cohen > Couple of things in a quick checklist: > 1. do you have the shebang line pointing to your perl executable? = (should be > like: #!c:\perl\bin\perl.exe) >=20 > Yes. printenv.pl is unmodified as I downloaded it from apache.org. > The shebang line is >=20 > #!c:/Perl/bin/Perl.exe >=20 > this points to the ActivePerl Perl.exe. The script produces the = correct output > when run from the command line, that is, a list of environment = variables > and values. The value of %PATH% seems consistent with ActivePerl. >=20 > 2. try running http://localhost/cgi-bin/printenv.pl as a test, what's = the > result? Do you see the environment variables? >=20 > When I type in this URL and enter, I get a "File Download" popup that > wants to save the file "printenv.pl" to my disk. When I do so, the = saved > file contains the expected output of the "printenv.pl" CGI script, = minus > the first six lines (including the Content-type line, a blank line, = and four > lines of data). I would much rather see the script output in the = browser > window. Maybe I need to change the Content-type line? >=20 > 3. which version of perl are you using? Is it 5.8x or 5.6x? >=20 > perl -v output: >=20 > This is perl, v5.6.1 built for MSWin32-x86-multi-thread > (with 1 registered patch, see perl -V for more detail) >=20 > Copyright 1987-2001, Larry Wall >=20 > Binary build 635 provided by ActiveState Corp. = http://www.ActiveState.com > Built 15:34:21 Feb 4 2003 >=20 > 4. when you doubleclick on printenv.pl at the first time, you would = get a > popup window: "open with.." choose the perl.exe that you have = installed and > assign the checkbox that will associate the .pl extension to perl.exe, that > way you can try out your .pl scripts from the command line. >=20 > Apparently all the filetype associates were made by ActivePerl when I > installed it. If , in the command prompt window, I cd to the cgi-bin > directory and run "printenv.pl", it prints the expected output. If I = open a > Windows folder, the .pl files have icons that look like little yellow pearls, > and if I click one, it runs in an ActivePerl perl interpreter Window. = I think > all is as it should be. >=20 > 5. if it is possible for you, try installing any of the packages into > folders without spaces, such as c:\apache\apache2, c:\apache\perl or > anything similar, it might cause you troubles in the future and you = won't > need to use " " when you enter folder's names. >=20 > Is this a real problem? If so, it seems cruel that Apache would have > their server install into "c:/Program Files/Apache Group/Apache2" by > default. I don't know what scares me more, the potiental problems = with > spaces in path names or the potential problems of installing to a > nonstandard location. Unless you know of a blocking issue related > to spaces in file paths, I'll live with the quotes for now. I don't = think > that's the problem here anyway. >=20 > All the best and good luck, > Jeff Cohen > Supoprt@GEJ-IT.com > Tel. (416) 917-2324 > www.GEJ-IT.com > GEJ-IT Networks! --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org