Re: PHP and a general problem understanding fastcgi

Benjamin Podszun <ben-/[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
David Birnbaum wrote:
> We use php/FastCGI extensively - it's great for a number of reasons:
> 
> 1.  You can control the number of instances of PHP per vhost very 
> easily, which prevents CPU thrash.
> 2.  The memory usage of the server is reduced because httpd stays very 
> light.
> 3.  Each PHP instance runs as the correct user/group which reduces 
> security exposure.
> 
> Our bench testing shows straight PHP is about the same in other mod_php 
> or FastCGI.  However, I find overall web performance to be slightly 
> higher because plenty of httpd's stay uninvolved with PHP and can handle 
> images/static pages while the PHP instances crunch away independently.
> 
> 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?
When I try to use this config I get "FastCgiServer cannot occur within 
<VirtualHost> section" as answer.. 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?

Thanks in advance for any help,
Ben
___________________________________
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.