Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 12890 invoked from network); 10 Apr 2004 00:27:47 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 10 Apr 2004 00:27:47 -0000 Received: (qmail 26161 invoked by uid 500); 10 Apr 2004 00:27:17 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 25945 invoked by uid 500); 10 Apr 2004 00:27:16 -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 25929 invoked from network); 10 Apr 2004 00:27:16 -0000 Received: from unknown (HELO brucehbase.org) (64.81.232.213) by daedalus.apache.org with SMTP; 10 Apr 2004 00:27:16 -0000 Received: from hellhome ([192.168.123.40]) by brucehbase.org ( IA Mail Server Version: 5.2.0. Build: 1041 ) ; Fri, 09 Apr 2004 17:26:47 -0700 Message-ID: <001001c41e92$86730580$287ba8c0@brucehbase.org> From: "Bruce H" To: References: <002301c41e7b$4133c8e0$287ba8c0@brucehbase.org> Date: Fri, 9 Apr 2004 17:26:54 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] Question on Perl path in CGI scripts X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks Joshua, The ScriptInterpreterSource directive was exactly what I needed. It worked like a charm. Bruce ----- Original Message ----- From: "Joshua Slive" To: Sent: Friday, April 09, 2004 2:59 PM Subject: Re: [users@httpd] Question on Perl path in CGI scripts On Fri, 9 Apr 2004, Bruce H wrote: > The problem is that Xitami, when running perl scripts, didn't care about the > first line of the script on Windows, so it always just ran Perl where ever it > was. However, Apache is much more picky about this and will not run the scripts > that have "#!/usr/bin/perl" at the top due to the path being different on my > windows box. I don't want to modify this line in the scripts depending on the > location since that would be very time consuming and prone to errors. I > typically just use the local copy for testing fixes and enhancements before > uploading them to the production site. I've tried creating a folder structure > on all my local hard drives that equates to \usr\bin and put a perl.bat file in > there that would launch perl from the proper location, but that doesn't work. It should work if you do it correctly. But you've given us no details on what went wrong. The other alternative is the ScriptInterpreterSource directive: http://httpd.apache.org/docs-2.0/mod/core.html#scriptinterpretersource Joshua. --------------------------------------------------------------------- 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 --------------------------------------------------------------------- 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