Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 24th June 2013, 16:10
maxxer maxxer is offline
Member
 
Join Date: May 2007
Posts: 37
Thanks: 6
Thanked 1 Time in 1 Post
 
Default Problem with orhpaned fcgi php processes2

Hi.

We have a webserver with apache 2.2.14, PHP 5.3.2.
PHP is executed using mod_fcgid (see bottom). Everything works fine but sometimes, and we still have to figure out what triggers this, when php processes are "rotated" they remain active and orphaned: apache spawns new php processes and the old ones remains on the system.
Killing them doesn't always kicks them away. More likely an "apache2ctl graceful" frees the system from this stale processes.
We found this in error log:
Quote:
[Tue Jun 18 20:49:54 2013] [warn] mod_fcgid: process 2009 graceful kill fail, sending SIGKILL
from what I found searching around this is quite normal, but that's all I found in apache logs during one of this processes leak.

This event is luckily seldomly happening, usually apache and php operate normally and with no problems during fcgid childrens renewal.
How can we understand what's going wrong in these situations?
thanks

maxxer

P.s. posting here some configs:

mod_fcgid config in site:
Code:
    <IfModule mod_fcgid.c>
      SuexecUserGroup domain domain
      <Directory /var/www/fomain.it/htdocs/>
        AddHandler fcgid-script .php
        FCGIWrapper /var/www/fcgi/domain.it/fcgi-starter-php .php
        Options +ExecCGI -Indexes
        AllowOverride FileInfo Options
        Order allow,deny
        Allow from all
      </Directory>
      <Directory /var/www/fcgi/domain.it/>
        AllowOverride None
        Options +ExecCGI MultiViews -Indexes
        Order allow,deny
        Allow from all
      </Directory>
    </IfModule>
/var/www/fcgi/domain.it/fcgi-starter-php:
Code:
#!/bin/sh

PHPRC=/var/www/fcgi/domain.it/php/

export PHPRC
PHP_FCGI_CHILDREN=8
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS

exec /usr/lib/cgi-bin/php $1
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron errors guimnk General 1 5th April 2011 10:20
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 18:26
ISPConfig3 Mail Warn Errors reason8 General 3 25th November 2009 14:58
Cannot add Mailboxes after PHP-Update hfr Installation/Configuration 5 7th November 2009 21:09
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 14:06


All times are GMT +2. The time now is 04:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.