Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 83072 invoked from network); 7 Dec 2004 12:48:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Dec 2004 12:48:41 -0000 Received: (qmail 35695 invoked by uid 500); 7 Dec 2004 12:48:21 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 35669 invoked by uid 500); 7 Dec 2004 12:48:21 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 35651 invoked by uid 99); 7 Dec 2004 12:48:21 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Message-ID: <41B5A608.70509@ungi.net> Date: Tue, 07 Dec 2004 13:46:00 +0100 From: Arnaud Blancher User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Brent Clark CC: modperl@perl.apache.org Subject: Re: Perl + apache + cgi References: <41B5A2D4.9020703@eccotours.dyndns.org> In-Reply-To: <41B5A2D4.9020703@eccotours.dyndns.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Brent Clark wrote: > Hi > > Would anyone care to share some info on setting up a CGI. > > I keep getting this error: > > [Tue Dec 7 09:48:47 2004] [error] [client 192.168.111.214] Premature > end of script headers: /home/gevens/cgi-bin/ecco/scripts/agent/logon.pl > > and > > [2004-12-07 10:17:28]: info: (target/actual) uid: (gevens/gevens) gid: > (gevens/gevens) cmd: logon.pl > [2004-12-07 10:17:28]: error: command not in docroot > (/home/gevens/cgi-bin/ecco/scripts/agent/logon.pl) > > Here is the permissions of the file in question: > -rwxr-xr-x 1 gevens gevens 170 Dec 7 12:28 logon.pl > > Here is my apache conf: > > > DocumentRoot /home/gevens/eccotours > ScriptAlias /cgi-bin/ /home/gevens/cgi-bin/ what's url do you check ? http://ftp/cgi-bin/logon.pl (mapped to /home/gevens/cgi-bin/logon.pl) your error seem to point on another place : /home/gevens/cgi-bin/ecco/scripts/agent/logon.pl > AccessFileName a.htaccess > User gevens > Group gevens > ErrorLog /var/log/apache/ecco.log > CustomLog /var/log/apache/ecco-access.log common > > > I thought there was something wrong with my script, but this script runs > on my hosted box in the uk, with no problems. > All I did was scp across locally. > > I editted the logon.pl script and just made it: > > #!/usr/bin/perl -w > # > print "Content-type: text/html\n\n"; > #use CGI::Pretty qw(); > #use CGI::Carp qw(fatalsToBrowser); > #use strict; > #use warnings; > > print "HELLO WORLD"; > > and still nothing. > > I wonder if it does not have anything todo with suEXEC. > > [2004-12-07 13:36:14]: info: (target/actual) uid: (gevens/gevens) gid: > (gevens/gevens) cmd: logon.pl > [2004-12-07 13:36:14]: error: command not in docroot > (/home/gevens/cgi-bin/ecco/scripts/agent/logon.pl) > > Any assistants would be greatly appreciated. > > Kind Regards > Brent Clark > > -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html