Re: problem: Debian apache2 + php4-cgi + attachments

Vincent Danen <[email protected]> Thu, 8 Jan 2004 14:56:44 -0700
Newsgroups gmane.comp.bug-tracking.anthill.devel
Message-ID <[email protected]>
On Jan 06, 2004, at 15:58, Moritz Bunkus wrote:

> me again :)
>
> I haven't been able to get PHP4 working with Apache2 when PHP4 is
> compiled as a lib (instead of the CGI variant). Segfaults and
> whatnot. So I've investigated further. The problem is that, in the 
> setup
> with PHP4 being executed as a CGI script, php4 is being executed but it
> cannot find the file in question. This is because it evaluates
> PATH_TRANSLATED which gets set by the browser to (in my case)
> /home/www/bunkus.org/html/anthill/showattachment.php/21/a.txt while
> PATH_INFO contains /anthill/showattachment.php/21/a.txt.
[...]

> Perhaps you can commit this to CVS as well? It should not hurt if
> PATH_INFO is only set to /21/a.txt, and it will work for me where it is
> set to the complete path.

Done.  Looks and acts fine here.  Also helped me catch some errors if 
you go showattachment.php with no params, it'd spit out some errors.  
Now it just redirects to index.php.

---
MandrakeSoft Security; http://www.mandrakesecure.net/
Online Security Resource Book; http://linsec.ca/
"lynx -source http://linsec.ca/vdanen.asc | gpg --import"
{FE6F2AFD : 88D8 0D23 8D4B 3407 5BD7  66F9 2043 D0E5 FE6F 2AFD}

_______________________________________________
Anthill-workers mailing list
Anthill-workers-+mQDA36h6dWw5LPnMra/[email protected]
http://vmlinuz.ca/mailman/listinfo/anthill-workers
PGP.sig (application/pgp-signature, 186 B) - not displayed