httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Smith" <ke...@netsmith.ltd.uk>
Subject Re: [users@httpd] pl script error
Date Thu, 16 Jan 2003 14:58:44 GMT
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" <MikeOlds@themozone.net>
To: <users@httpd.apache.org>; "Kevin Smith" <kevin@netsmith.ltd.uk>
Cc: <Owen.Boyle@swx.com>
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 <VirtualHost ~> 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" <Owen.Boyle@swx.com>
> To: <users@httpd.apache.org>
> 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 <VirtualHost> 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" <apache@cosinus.sederhana.or.id>
> >To: "apache" <users@httpd.apache.org>
> >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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message