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

Re: php + thttpd



 > From: "Doc Nielsen" <http://www.DocNielsen.dk/~Doc>
 > Date: Fri, 9 Apr 2004 01:50:46 +0200
 >
 > ----- Original Message ----- 
 > From: "Robert" <http://dummy.us.eu.org/robert>
 > To: <http://www.esprov.net/~jmruiz>; <http://www.DocNielsen.DK/~Doc>
 > Sent: Thursday, April 08, 2004 4:32 AM
 > Subject: php + thttpd
 > 
 > > Hi.  I saw your posts at
 > > http://php.planetmirror.com/manual/en/install.linux.php
 > 
 > damn its been a while since i posted that... but yes, i still use thttpd+php
 > on my server.
 > 
 > > Although I have no problem with php3, I am having lots of problems with
 > > php 4 (php4-cgi v=4.3.4-4) running as a CGI program under thttpd.
 > >
 > > Is compiling php4 with --with-thttpd strictly necessary to get php to work
 > > with thttpd?  I'd prefer not to have to download php4-cgi and recompile it
 > > every time there's an update (I'm running Debian GNU/Linux unstable).
 > 
 > uhm... you dont need to get  php4-cgi at all. you DO need to download the
 > php-source.
 > A recompile is needed for it to be upgraded.
 > What packages that are required, depends on your current system, and/or
 > configure options.
 > I'd be happy to help in any way i can, so feel free to ask.

Actually, I got it working, but not terribly well.  I ended up having to:

1) Change thttpd so it sets SCRIPT_FILENAME.
2) Recompile the Debian php4-cgi from source and use the
   --enable-discard-path flag in debian/rules.

But, now, I'm having a strange problem where some PHP CGI requests don't
flush all the output (so I only have part of a page come back).  It mostly
only seems to happen with POST method requests.

I think the problem is with thttpd because, after adding flush() and
ob_flush() to the PHP script, it doesn't improve.  I sent a request to the
author of thttpd to see if he can help me.

 > > Thanks.
 > 
 > you are most welcome :)
 > 
 > - Doc













Why do you want this page removed?