Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Bug#444048: apache2: CGI scripts entirely broken

From: Nick Price <nprice(at)q-cat.com>
Date: Tue Sep 25 2007 - 18:10:52 EDT


As mentioned earlier, i did try with \r\n\r\n and got the same problem.

On 9/25/07, Ralf Mattes <rm@seid-online.de> wrote:
>
> On Tue, 2007-09-25 at 14:42 -0700, Nick Price wrote:
> > It does actually begin with #!/usr/bin/perl -w and then the single
> > line of code. I wasn't sure what you meant.
> >
> > www-data@server:~$ env -i LANG=C PATH=/usr/local/bin:/bin ./test.pl
> > Content-type: text/html
> >
> > www-data@server:~$
> >
> > To invoke the script via commandline earlier, I did the same thing
> > without forcing the env variables.
>
> Ok, I had a closer look at your script - as others already mentioned:
> HTTP headers end with Carriage-Return,Newline. If I test locally with
> your version I get the same error message, if I use "\r\n\r\n" I get the
> expected, correct behavior.
>
> HTH Ralf Mattes
>
> >
> > On 9/25/07, Ralf Mattes <rm@seid-online.de> wrote:
> > On Tue, 2007-09-25 at 13:36 -0700, Nick Price wrote:
> > > That script I pasted, as well as the latest version of
> > awstats
> > > (http://awstats.sourceforge.net/), and uber-uploader
> > > (http://uber-uploader.sourceforge.net/)
> >
> > You mean your script looks like this:
> >
> > *-------------------------------------------------
> > | print "Content-type: text/html\n\n";
> > |
> >
> > Nothing more? No #!-line at the begining?
> > How do you invoke your script from the command line?
> > What does the following produce:
> >
> > $ sudo -s
> > # su - www-data
> > $ env -i LANG=C
> > PATH=/usr/local/bin:/usr/bin:/bin ./your-script-name
> >
> > Cheers, RalfD
> >
> > > They were all working just fine until after an apt-get
> > upgrade, I
> > > didn't catch which version of apache was previously running,
> > > unfortunately.
> > >
> > > On 9/25/07, Ralf Mattes <rm@seid-online.de> wrote:
> > > On Tue, 2007-09-25 at 13:08 -0700, Nick Price wrote:
> > > > I've tried with several known-good scripts as
> > well, and with
> > > \r\n\r\n
> > > > and still nothing. The permissions are correct on
> > the
> > > script and I am
> > > > not using suexec.
> > > >
> > > > Any ideas?
> > >
> > > Yes, many. But you might help us by providing the
> > _exact_
> > > script you try
> > > to run. This smells like a not-working sheebang
> > line. How do
> > > you specify
> > > the perl interpreter? Remember: apache2 runs in a
> > rather
> > > restricted
> > > environment:
> > >
> > > ENV="env -i LANG=C
> > PATH=/usr/local/bin:/usr/bin:/bin"
> > >
> > > HTH Ralf Mattes
> > >
> > > >
> > > > On 9/25/07, martin f krafft <madduck@debian.org >
> > wrote:
> > > > also sprach Nick Price <nprice@q-cat.com>
> > > [2007.09.25.1918
> > > > +0100]:
> > > > > I have a perl script that is simply
> > > > > print "Content-type: text/html\n\n";
> > > >
> > > > I believe this has to be \r\n\r\n.
> > > >
> > > > --
> > > > .''`. martin f. krafft
> > <madduck@debian.org>
> > > > : :' : proud Debian developer, author,
> > > administrator, and
> > > > user
> > > > `. `'` http://people.debian.org/~madduck
> > -
> > > > http://debiansystem.info
> > > > `- Debian - when you have better things
> > to do
> > > than fixing
> > > > systems
> > > >
> > > > -----BEGIN PGP SIGNATURE-----
> > > > Version: GnuPG v1.4.6 (GNU/Linux)
> > > >
> > > > iD8DBQFG
> > > >
> > >
> > +WgeIgvIgzMMSnURAgIwAJ9HVrWvWyEaOGA3DFaie39C6ssoHgCgw4NX
> > > > ozbk8SYOOMs7s7X+QzeYThM=
> > > > =d1yx
> > > > -----END PGP SIGNATURE-----
> > > >
> > > >
> > >
> > >
> >
> >
>
>

-- 
To UNSUBSCRIBE, email to debian-apache-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Tue Sep 25 18:21:31 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 07:57:51 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library