Currently I have this apache2 configuration, on Ubuntu, for php

<Directory /var/www>  
AddHandler fcgid-script .php  
FCGIWrapper /usr/lib/cgi-bin/php5 .php  
Options +ExecCGI  
</Directory>

If I want to PHP_FCGI_CHILDREN and PHP_FCGI_MAX_REQUESTS, would I do
this instead
<Directory /var/www>
ScriptAlias /fastcgi-bin/ "/var/www/cgi-bin/"
AddHandler php5-fastcgi .php
Action php5-fastcgi /fastcgi-bin/php.cgi
# ...
</Directory>   

and, then, also create /var/www/fastcgi-bin/php.cgi
#!/bin/sh 
### Set PATH ### 
PHP_CGI=/usr/bin/php-cgi  
PHP_FCGI_CHILDREN=4 
PHP_FCGI_MAX_REQUESTS=100000 
### no editing below ### 
export PHP_FCGI_CHILDREN 
export PHP_FCGI_MAX_REQUESTS 
exec $PHP_CGI 

and # chmod +x /var/www/fastcgi-bin/php.cgi

--kurt





------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users

Reply via email to