Re: PHP and a general problem understanding fastcgi

David Birnbaum <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
On Tue, 12 Jul 2005, Benjamin Podszun wrote:

>> Here's a sample vhost configuration for you:
>> 
>>  User blah
>>  Group blahgrp
>>  FastCgiServer /export/httpd/DOMAINS/blah.com/cgi-bin/php -port 9050
>>  AddHandler php-fastcgi .php
>>  <Location /cgi-bin/php>
>>    SetHandler fastcgi-script
>>  </Location>
>>  Action php-fastcgi /cgi-bin/php
>
> Just tried the above.. User and Group are not correct, I guess. Did you mean 
> SuexecUserGroup?

Yes, that's correct.  I'm using a slightly older version of FastCGI.

> When I try to use this config I get "FastCgiServer cannot occur within 
> <VirtualHost> section" as answer.

[ Rob, what have you done? ]  I think the documentation is a bit out of date; it 
looks like the -user and -group switches are added to the FastCgiServer 
directive, so they would all be moved up and run with the correct context.

> Of course it would be possible to define servers outside the vhost sections, 
> but that would be quite - inconvenient. And I still don't understand how I 
> connect a given server with a handler.. So - how can I specify which server 
> I'm talking about? Is the path to the binary the only way?

That path to the binary is the correct way - if it's an External server, then 
the path doesn't exist - it's virtual within apache, and will be mapped to a 
FastCGI call to the host:port.  If it's not External, than the file (which is 
the shell script to exec php with the right options) is run as a persistent 
FastCGI invocation.

Hope this helps - maybe you could post your updated configurations and we could 
update the FAQ.

David.

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.