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

Re: Thttpd and PHP



On Sat, 17 Jul 2004 05:08:27 +0300
Micha Feigin <michf@post.tau.ac.il> wrote:

> On Sat, Jul 17, 2004 at 08:30:48AM +0800, John Summerfield wrote:
> > Jacob S. wrote:
> > 
> > >I'm afraid I'm not familiar with thttpd, but here are some things I
> > >would check. 
> > >
> > >1) Is there anything in the config file that tells thttpd what file
> > >extensions should be treated as .cgis? You will probably want to
> > >add php to this list.
> > >
> > This might work::
> > 
> > cgipat=*.php
> > 
> 
> I don't think that php can run as cgi. I seem to recall though some
> php support through cgi (you run the php page through a cgi to process
> it). You should look at that option.

I'm sorry? Do you mean it can't run as a cgi when the webserver is
thttpd? 

Because php can definitely run as a cgi - which is why there is a
package in Debian called php4-cgi. I've found it to be great for testing
an occasional script on my desktop, before uploading it to the server.
I've also seen others mention using it for the purpose of having scripts
run under a different username from apache, using Apache's SuExec
feature.

I may be misunderstanding what you were trying to say though.

HTH,
Jacob

-- 
GnuPG Key: 1024D/16377135

Random .signature #36:
Double your disk space - delete Windows!
http://www.linux.org

Attachment: pgpNpByV3ajmY.pgp
Description: PGP signature


Reply to: