# Terminating php fastcgi processes

**URL:** <https://www.ruby-forum.com/t/terminating-php-fastcgi-processes/148884>\
**Category:** NGINX\
**Created:** [September 17, 2008, 11:48pm UTC](https://www.ruby-forum.com/t/terminating-php-fastcgi-processes/148884 "2008-09-17T23:48:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergio\_Devojno\_Brud](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@Sergio\_Devojno\_Brud](https://www.ruby-forum.com/u/Sergio_Devojno_Brud)\
**Post date:** [September 17, 2008, 11:48pm UTC](https://www.ruby-forum.com/t/terminating-php-fastcgi-processes/148884/1 "2008-09-17T23:48:12Z")

</div>

offtopic: its more about php than nginx:

there is any similar to apache\_child\_terminate for fastcgi php´s?

My last resort of exec(’/usr/bin/kill '.getmypid()) plainly doesnt  
worked, the output is broken (nginx spit out a ‘bad gateway’) but the  
process is still there. stock fastcgi php support any of that?

---

<div class="post-metadata">

**Author:** ![Sergio\_Devojno\_Brud](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@Sergio\_Devojno\_Brud](https://www.ruby-forum.com/u/Sergio_Devojno_Brud)\
**Post date:** [September 18, 2008, 12:04am UTC](https://www.ruby-forum.com/t/terminating-php-fastcgi-processes/148884/2 "2008-09-18T00:04:36Z")

</div>

Look into php-fpm. It’s pretty much what everyone suggests.

On Wed, Sep 17, 2008 at 3:38 PM, Sergio Devojno Bruder

---

<div class="post-metadata">

**Author:** ![Sergio\_Devojno\_Brud](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbe5ce/32.png) [@Sergio\_Devojno\_Brud](https://www.ruby-forum.com/u/Sergio_Devojno_Brud)\
**Post date:** [September 29, 2008, 1:41pm UTC](https://www.ruby-forum.com/t/terminating-php-fastcgi-processes/148884/3 "2008-09-29T13:41:53Z")

</div>

There are a few directives you can pass to PHP when starting is with  
-b… what exactly does apache\_child\_terminate do? There may be a php  
equiv.

Sergio Devojno Bruder wrote:

> offtopic: its more about php than nginx:
> 
> there is any similar to apache\_child\_terminate for fastcgi phpÂ´s?
> 
> My last resort of exec('/usr/bin/kill '.getmypid()) plainly doesnt  
> worked, the output is broken (nginx spit out a ‘bad gateway’) but the  
> process is still there. stock fastcgi php support any of that?

–

_Phillip B Oldham_  
The Activity People  
removed\_email\_address@domain.invalid [mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

* * *

_Policies_

This e-mail and its attachments are intended for the above named  
recipient(s) only and may be confidential. If they have come to you in  
error, please reply to this e-mail and highlight the error. No action  
should be taken regarding content, nor must you copy or show them to  
anyone.

This e-mail has been created in the knowledge that Internet e-mail is  
not a 100% secure communications medium, and we have taken steps to  
ensure that this e-mail and attachments are free from any virus. We must  
advise that in keeping with good computing practice the recipient should  
ensure they are completely virus free, and that you understand and  
observe the lack of security when e-mailing us.
