Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 89773 invoked by uid 500); 16 Jan 2003 15:46:58 -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 89741 invoked from network); 16 Jan 2003 15:46:57 -0000 Received: from adsl-63-205-72-31.dsl.snfc21.pacbell.net (HELO themozone) (63.205.72.31) by daedalus.apache.org with SMTP; 16 Jan 2003 15:46:57 -0000 Received: from [63.205.72.31] (helo=unknown) by themozone with smtp (Exim 3.35 #1 (Debian)) id 18ZCBg-0000Cv-00 for ; Thu, 16 Jan 2003 07:44:12 -0800 From: "Michael Olds" To: Date: Thu, 16 Jan 2003 07:46:57 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <029c01c2bd6f$c3ea7fe0$82679bd9@WEBSERVER> Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: RE: [users@httpd] pl script error Keven, Good for you...I've been sitting here for a week now thinking that was the only way I was going to get this issue straight, but havn't had the energy to do it yet. Good luck solving your problem, whatever it is! Best Wishes! Mike Olds www.buddhadust.org -----Original Message----- From: Kevin Smith [mailto:kevin@netsmith.ltd.uk] Sent: Thursday, January 16, 2003 6:59 AM To: MikeOlds@themozone.net; users@httpd.apache.org Cc: Owen.Boyle@swx.com Subject: Re: [users@httpd] pl script error Lucky for me that suexec shows as being disabled. I did after all compile my own version of Apache, which is as follows: Apache/1.3.27 PHP/4.3.0 mod_perl/1.27 mod_ssl/2.8.12 OpenSSL/0.9.7 All the above was compiled from their sources, no Debian packages here! ;) Mainly due to the major bugs in OpenSSL that were reported, so I have the latest version and the fact that the Debian packages are way behind on the current versions anyway. Regards, Kevin ----- Original Message ----- From: "Michael Olds" To: ; "Kevin Smith" Cc: Sent: Thursday, January 16, 2003 2:37 PM Subject: RE: [users@httpd] pl script error > Hello, > > Look into complications being caused by the default Debian enabling of > SuEXEC. > run apache -l to see that it is enabled > This means that you need to take into consideration several things (the > totatal implications of which I have not myself figured out as of yet, so > please consider this a pointer in terms of direction, not a solution): > Using cgi-bins in requires a user with no other privileges. > The default directory setup must be server document root: /var/www/ > The default cgi-bin must be under this root > Individual cgi-bins must be under the top level of the VirtualHost document > root > UserDir cgi-bins must be under /public_html > > Exactly how to get SuEXEC to stop interfering with cgi-setup is not clear to > me...simply disabling it by changing the user and group, changing the set > user id bit to off, or changing the file name does not work for me. > > Best Wishes! > Mike Olds www.buddhadust.org > > > > -----Original Message----- > From: Kevin Smith [mailto:kevin@netsmith.ltd.uk] > Sent: Thursday, January 16, 2003 6:15 AM > To: users@httpd.apache.org > Cc: Owen.Boyle@swx.com > Subject: Re: [users@httpd] pl script error > > > I've just decided to try and run a simple Perl script throught the browser > and it works! So, why doesn't more complicated perl scripts run, they > execute on the CLI perfectly everytime. > > Just for you info I run the exact same configuration file on my Windows 2000 > server and everything works fine. > > I'm now migrating to the Debian Linux 3.0 (powerpc) platform using the same > apache configuration directives. I've developed and implemented websites on > a Unix platform before, so I'm slightly confused as to this problem. > > Oh, the output of /usr/bin/perl -v shows the version number (v5.6.1 built > for powerpc-linux), copyright notice and GNU licence info, so that works > great. Also works if I juat type: perl -v without the path. > > Typing the full path to the script without typing perl first doesn't work, > it returned the following, is this significant? > : bad interpreter: No such file or directoryion_list.pl: /usr/bin/perl > > That is the exact message, it gardbled the file name.... *strange* > > Oh, in my directives I do have: AddHandler cgi-script cgi pl > > Any ideas? > > Thanks, > > kevin > > ----- Original Message ----- > From: "Boyle Owen" > To: > Sent: Thursday, January 16, 2003 1:39 PM > Subject: RE: [users@httpd] pl script error > > > This usually implies that the shebang line (i.e. /usr/bin/perl) is > wrong. > > I know you said it is correct, but please try the following anyway: > > - log in to the webserver > - su to the apache user (if it has a login shell) > - do /usr/bin/perl -v > - did it work? > - do /www/htdocs/www.iin.org/www/auctions_cgi/auction_list.pl > - did it work? > - did it return "Content-type: text/html" plus a blank line > right at the start? (This is the "header" it is talking about). > > > Rgds, > Owen Boyle > > >-----Original Message----- > >From: Kevin Smith [mailto:kevin@netsmith.ltd.uk] > >Sent: Donnerstag, 16. Januar 2003 13:06 > >To: users@httpd.apache.org > >Subject: Re: [users@httpd] pl script error > > > > > >Hi, > > > >I'd thought I'd stay on this same subject as I have a similar problem. > > > >However, my perl binary is at #!/usr/bin/perl as well and is > >stated on the > >first line of the perl script. > > > >The problem seems to be with Apache config of ScriptAlias or > >so it seems. > >Here is the error log entry and the ScriptAlias Apache config > >entry. This > >perl does execute perfectly on the command line, so it's not a > >problem with > >the script. > > > >[error] (2)No Such file or directory: exec of > >/www/htdocs/www.iin.org/www/auctions_cgi/auction_list.pl failed > >[error] Premature end of script headers: > >/www/htdocs/www.iin.org/www/auctions_cgi/auction_list.pl > > > >This is inside a directive: > > ScriptAlias /auctions_cgi/ /www/htdocs/www.iin.org/auctions_cgi/ > > > >Why does the error log report no such file or directory, yet > >it seems to > >confirm that it did indeed try to exec the script?? Confusing > >huh? And yes > >the, directory is correct, I checked it a thousand times. ;) > > > >The script is also definitely been chmod 755. > > > >The browser just shows an "Internal Server Error"... > > > >Any ideas? > > > >Many thanks, > > > >Kevin > > > >----- Original Message ----- > >From: "Erwien Samantha Y" > >To: "apache" > >Sent: Thursday, January 16, 2003 5:51 PM > >Subject: Re: [users@httpd] pl script error > > > > > >> > >> add header > >> #!/usr/local/bin/perl <--- (where perl binary instaled , > >#whereis perl) > >> > >> On Thu, 2003-01-16 at 10:34, system@eluminoustechnologies.com wrote: > >> > Hello All, > >> > > >> > I have installed perl scripts on my linux box (Apache). i > >have places > >> > the files in cgi-bin directory my virtualhost entries are > >correct the > >> > permissions are 755 on .pl files still i get the error > >"Premature End > >> > of Script Headers". > >> > Could anyone help me pls. > >> > > >> > Regards, > >> > > >> > Rob. > >> > >> > >> --------------------------------------------------------------------- > >> 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 > > > > > > This message is for the named person's use only. It may contain > confidential, proprietary or legally privileged information. No > confidentiality or privilege is waived or lost by any mistransmission. > If you receive this message in error, please notify the sender urgently > and then immediately delete the message and any copies of it from your > system. Please also immediately destroy any hardcopies of the message. > You must not, directly or indirectly, use, disclose, distribute, print, > or copy any part of this message if you are not the intended recipient. > The sender�s company reserves the right to monitor all e-mail > communications through their networks. Any views expressed in this > message are those of the individual sender, except where the message > states otherwise and the sender is authorised to state them to be the > views of the sender�s company. > > --------------------------------------------------------------------- > 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 > --------------------------------------------------------------------- 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