[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#185747: marked as done (apache 1.3.27 breaks php4-cgi)



Your message dated Thu, 17 Jul 2003 14:58:23 +0100
with message-id <20030717135823.GJ8351@mirror.positive-internet.com>
and subject line -ENOTABUG
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 21 Mar 2003 14:18:41 +0000
>From ruben@puettmann.net Fri Mar 21 08:18:40 2003
Return-path: <ruben@puettmann.net>
Received: from mout1.freenet.de [194.97.50.132] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18wNM0-0003Kl-00; Fri, 21 Mar 2003 08:18:40 -0600
Received: from [194.97.50.144] (helo=mx1.freenet.de)
	by mout1.freenet.de with asmtp (Exim 4.14)
	id 18wNLx-0004XX-FH
	for submit@bugs.debian.org; Fri, 21 Mar 2003 15:18:37 +0100
Received: from work.freenet-ag.de ([194.97.7.45])
	by mx1.freenet.de with smtp (Exim 4.14 #2)
	id 18wNLx-00029u-Ag
	for submit@bugs.debian.org; Fri, 21 Mar 2003 15:18:37 +0100
Date: Fri, 21 Mar 2003 15:18:35 +0100
From: Ruben Puettmann <ruben@puettmann.net>
To: submit@bugs.debian.org
Subject: apache 1.3.27 breaks php4-cgi
Message-Id: <20030321151835.53710b8b.ruben@puettmann.net>
Organization: Puettmann.NeT
X-Mailer: Sylpheed version 0.8.10claws (GTK+ 1.2.10; i686-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; protocol="application/pgp-signature";
 micalg="pgp-sha1"; boundary="k0=.nn0H)AcDzG9s"
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-1.4 required=4.0
	tests=HAS_PACKAGE,NOSPAM_INC,PGP_SIGNATURE_2,
	      SIGNATURE_LONG_SPARSE,SPAM_PHRASE_00_01
	version=2.44
X-Spam-Level: 

--k0=.nn0H)AcDzG9s
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit



Package: apache
Version: 1.3.27-1
Severity: normal 



It appears that when Apache executes the php cgi it passes 
SCRIPT_FILENAME as /usr/bin/php4 and PATH_TRANSLATED is
the name of the php script /var/www/index.phtml.  The php cgi on 
the other hand does not execute against PATH_TRANSLTED it executes 
against SCRIPT_FILENAME.  The result is if you use the Apache/Php-CGI in the
default configuration, every time the Php CGI executes, it uses itself (a binary
file) as the input file to translate. And then it spews garbage because it is
trying to parse a binary file.


Add the following cgi to your cgi-bin and use it to run php.

--------------------------------------
#!/bin/bash
export SCRIPT_FILENAME=$PATH_TRANSLATED
exec /usr/bin/php4
--------------------------------------




-- 
Ruben Puettmann
ruben@puettmann.net
http://www.puettmann.net

--k0=.nn0H)AcDzG9s
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+ex89gHHssbUmOEIRArYKAKDRFDQZ63NfkrSQIdb8CB1o76fVEwCggXsC
DglzGKppLtR5EjwLHZvSuT4=
=e2Dk
-----END PGP SIGNATURE-----

--k0=.nn0H)AcDzG9s--

---------------------------------------
Received: (at 185747-done) by bugs.debian.org; 17 Jul 2003 13:58:27 +0000
>From thom@debian.org Thu Jul 17 08:58:24 2003
Return-path: <thom@debian.org>
Received: from mirror.positive-internet.com [80.87.128.67] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19d9H6-0000E0-00; Thu, 17 Jul 2003 08:58:24 -0500
Received: by mirror.positive-internet.com (Postfix, from userid 1002)
	id 33D5A43502; Thu, 17 Jul 2003 14:58:23 +0100 (BST)
Date: Thu, 17 Jul 2003 14:58:23 +0100
From: Thom May <thom@debian.org>
To: 185747-done@bugs.debian.org
Subject: -ENOTABUG
Message-ID: <20030717135823.GJ8351@mirror.positive-internet.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
X-Operating-System: Linux/2.4.20-686 (i686)
User-Agent: Mutt/1.5.4i
Delivered-To: 185747-done@bugs.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0
	tests=BAYES_01,USER_AGENT_MUTT
	version=2.53-bugs.debian.org_2003_06_27
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_06_27 (1.174.2.15-2003-03-30-exp)

Or certainly not one of ours. If php4-cgi doesn't handle it's input
correctly it's a problem for PHP to deal with.



Reply to: