# PHP\_FCGI\_CHILDREN for Ruby

**URL:** <https://www.ruby-forum.com/t/php-fcgi-children-for-ruby/83291>\
**Category:** Ruby\
**Created:** [January 24, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/php-fcgi-children-for-ruby/83291 "2007-01-24T22:51:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 24, 2007, 10:51pm UTC](https://www.ruby-forum.com/t/php-fcgi-children-for-ruby/83291/1 "2007-01-24T22:51:51Z")

</div>

Hello,

I know the environment variable PHP\_FCGI\_CHILDREN sets the maximum  
number of php fastcgi processes to be spawn when using Apache. Is there  
a similar environment variable for Ruby/Rails fastcgi applications? Or  
does this same variable also apply to Ruby?

Thanks

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 25, 2007, 10:57am UTC](https://www.ruby-forum.com/t/php-fcgi-children-for-ruby/83291/2 "2007-01-25T10:57:11Z")

</div>

On Wed, 24 Jan 2007 22:50:07 +0100, [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 

[http://www.fastcgi.com/mod\_fastcgi/docs/mod\_fastcgi.html#FastCgiServer](http://www.fastcgi.com/mod_fastcgi/docs/mod_fastcgi.html#FastCgiServer)

Specifically, the -processes switch.

David V.

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 25, 2007, 1:24pm UTC](https://www.ruby-forum.com/t/php-fcgi-children-for-ruby/83291/3 "2007-01-25T13:24:41Z")

</div>

On 1/24/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I know the environment variable PHP\_FCGI\_CHILDREN sets the maximum  
> number of php fastcgi processes to be spawn when using Apache. Is there  
> a similar environment variable for Ruby/Rails fastcgi applications? Or  
> does this same variable also apply to Ruby?

Not builtin, but your FastCGI process manager (Apache, lighttpd,  
nginx, etc) probably does the same for you.

PHP can manage its own FastCGI processes by forking up to  
PHP\_FCGI\_CHILDREN listeners.

See [http://dev.rubyonrails.org/ticket/1890](http://dev.rubyonrails.org/ticket/1890) for an early effort.

jeremy

---

<div class="post-metadata">

**Author:** ![unknown](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/4bbf92/32.png) [@unknown](https://www.ruby-forum.com/u/unknown)\
**Post date:** [January 26, 2007, 10:21pm UTC](https://www.ruby-forum.com/t/php-fcgi-children-for-ruby/83291/4 "2007-01-26T22:21:11Z")

</div>

Hello,

I knew this could be done using the options offered by  
apache/mod\_fastcgi, but I’m running ruby/rails on a shared host, so I  
have no control over those settings. Too bad the work on that patch was  
was abandoned.

Thanks
