Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 68411 invoked from network); 26 Nov 2005 06:04:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Nov 2005 06:04:25 -0000 Received: (qmail 20168 invoked by uid 500); 26 Nov 2005 06:04:15 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 20154 invoked by uid 500); 26 Nov 2005 06:04:15 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 20142 invoked by uid 99); 26 Nov 2005 06:04:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Nov 2005 22:04:15 -0800 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [68.142.229.104] (HELO smtp101.sbc.mail.re2.yahoo.com) (68.142.229.104) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 25 Nov 2005 22:05:44 -0800 Received: (qmail 93403 invoked from network); 26 Nov 2005 06:03:51 -0000 Received: from unknown (HELO epox2800) (michael.avila.1@sbcglobal.net@69.221.95.239 with login) by smtp101.sbc.mail.re2.yahoo.com with SMTP; 26 Nov 2005 06:03:51 -0000 From: "Michael Avila" To: Date: Sat, 26 Nov 2005 01:03:50 -0500 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000A_01C5F225.437FD510" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] Cannot Get PERL to work X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_NextPart_000_000A_01C5F225.437FD510 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I have done that and it still does not work. #!D:\perl\bin\perl.exe # Does that look like the right format? Mike -----Original Message----- From: William Cai [mailto:william.cai@gmail.com] Sent: Saturday, November 26, 2005 12:39 AM To: users@httpd.apache.org Subject: Re: [users@httpd] Cannot Get PERL to work I met the same problem before. If my recollection is right, the problem is caused by your perl script. You might have to specify the executable binary with absolute path. e.g. #!C:/perl/bin/perl.exe blablabla Hope it helps. -William On 11/26/05, Michael Avila wrote: Windows XP Pro Active State PERL 5.6 (Have to have 5.6 and not 5.8 for a specific application) NOTE: IP Addresses and website changed to prevent hacking QUESTION: What is it that cannot be found - admin.pl or PERL.exe or something else? ------------------------------------------------------------------------ ---- ------------------------------------------------------------------- httpd.conf ======= ScriptAlias /perl "d:/perl" AddType application/x-httpd-pl .pl .cgi Action application/x-httpd-pl "/perl/bin/perl.exe " Alias /sql-ledger /sql-ledger AllowOverride All AddHandler cgi-script .pl AddDefaultCharset On Options ExecCGI Includes FollowSymlinks Order Allow,Deny Allow from All ------------------------------------------------------------------------ ---- ------------------------------------------------------------------- when I execute a perl script from a web browser such as http://www.xxxxx.com/sql-ledger/admin.pl ------------------------------------------------------------------------ ---- ------------------------------------------------------------------- I get Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, xxxxx@xxxxx.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. ------------------------------------------------------------------------ ---- ------------------------------------------------------------------- error.log ====== [Sat Nov 26 00:16:34 2005] [error] [client 0.0.0.0] (OS 3)The system cannot find the path specified. : couldn't create child process: 720003: admin.pl [Sat Nov 26 00:16:34 2005] [error] [client 0.0.0.0] (OS 3)The system cannot find the path specified. : couldn't spawn child process: E:/sql-ledger/admin.pl ------------------------------------------------------------------------ ---- ------------------------------------------------------------------- --------------------------------------------------------------------- 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 ------=_NextPart_000_000A_01C5F225.437FD510 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have=20 done that and it still does not work.
 
 
#!D:\perl\bin\perl.exe
#
 
Does=20 that look like the right format?
 
Mike
 
-----Original Message-----
From: William Cai=20 [mailto:william.cai@gmail.com]
Sent: Saturday, November 26, = 2005=20 12:39 AM
To: users@httpd.apache.org
Subject: Re:=20 [users@httpd] Cannot Get PERL to work


I met = the same=20 problem before. If my recollection is right, the problem is caused by = your=20 perl script. You might have to specify the executable binary with = absolute=20 path.

e.g.
#!C:/perl/bin/perl.exe
blablabla

Hope = it=20 helps.

-William

On 11/26/05, Michael=20 Avila <Michael.Avila.1@sbcglobal.n= et>=20 wrote:
Windows=20 XP Pro
Active State PERL 5.6 (Have to have 5.6 and not 5.8 for a=20 specific
application)
NOTE: IP Addresses and website changed = to=20 prevent hacking


QUESTION: What is it that cannot be found = -=20 admin.pl or PERL.exe or
something=20 = else?

------------------------------------------------------------= ----------------
-----------------------------------------------------= --------------
httpd.conf
=3D=3D=3D=3D=3D=3D=3D
ScriptAlias=20 /perl "d:/perl"
AddType application/x-httpd-pl .pl = .cgi
Action=20 application/x-httpd-pl "/perl/bin/perl.exe "


Alias = /sql-ledger=20 /sql-ledger
<Directory /sql-ledger>
AllowOverride=20 All
AddHandler cgi-script .pl
AddDefaultCharset On
Options = ExecCGI=20 Includes FollowSymlinks
Order Allow,Deny
Allow from=20 = All
</Directory>

----------------------------------------= ------------------------------------
---------------------------------= ----------------------------------=20

when I execute a perl script from a web browser such = as

http://www.xxxxx.com/sq= l-ledger/admin.pl

--------------------------------------------= --------------------------------=20 =
-------------------------------------------------------------------
I=20 get

Internal Server Error

The server encountered an = internal=20 error or misconfiguration and was unable
to complete your = request.=20

Please contact the server administrator, xxxxx@xxxxx.com and inform them = of
the=20 time the error occurred, and anything you might have done that may=20 have
caused the error.

More information about this error = may be=20 available in the server error=20 = log.

-------------------------------------------------------------= ---------------
------------------------------------------------------= -------------=20
error.log
=3D=3D=3D=3D=3D=3D
[Sat Nov 26 00:16:34 2005] = [error] [client 0.0.0.0] (OS 3)The system cannot
find = the path=20 specified.  : couldn't create child process: 720003:=20 admin.pl
[Sat Nov 26 00:16:34 2005] [error] [client 0.0.0.0] (OS 3)The system cannot
find = the path=20 specified.  : couldn't spawn child=20 = process:
E:/sql-ledger/admin.pl

-------------------------------= ---------------------------------------------=20 =
-------------------------------------------------------------------

---------------------------------------------------------------= ------
The=20 official User-To-User support forum of the Apache HTTP Server = Project.=20
See <URL:http://httpd.apache.org/u= serslist.html>=20 for more info.
To unsubscribe, e-mail: users-unsubscribe@http= d.apache.org=20
   "   from the digest: users-digest-un= subscribe@httpd.apache.org
For=20 additional commands, e-mail: users-help@httpd.apache.org


------=_NextPart_000_000A_01C5F225.437FD510--