Current time: 11-16-2024, 07:14 AM Hello There, Guest! (LoginRegister)


Post Reply 
vu2005 php5-cgi
Author Message
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #6
RE: vu2005 php5-cgi
This is a lot of php5-cgi processes for one site (vu20005). Unless you did this on purpose because that site is under heavy load, i'd trim it down.

I believe the default settings in php5-fcgi-starter script cause issues which may be what you are seeing. I found with the default settings many more php5 processes would be started, and a lot of times they woudl not be shutdown on an apache restart (like they should).

I proceeded to modify my starter script as follows, and haven't had any issues since (several months back). There are a few threads on this same issue if you search for "php5-fcgi-starter" in the forum. I believe the finding was that php.net recommends against using php's "child process management" and using fastcgi/fcgid's built in support instead.

Example (see commented out lines):

Code:
#!/bin/sh

umask 022

PHPRC="/var/www/fcgi/mydomain.com/php5/"

export PHPRC
#PHP_FCGI_CHILDREN=2
#export PHP_FCGI_CHILDREN
#PHP_FCGI_MAX_REQUESTS=500
#export PHP_FCGI_MAX_REQUESTS

exec /usr/lib/php5/bin/php-cgi

Give this a try and see how it works for you. As i noted, you may need to stop apache, kill left over php5-cgi processes, then start apache so orphaned processes aren't left behind after the config change.

-
pgentoo
01-09-2010 07:28 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
vu2005 php5-cgi - legion726 - 01-09-2010, 01:44 AM
RE: vu2005 php5-cgi - motokochan - 01-09-2010, 02:23 AM
RE: vu2005 php5-cgi - legion726 - 01-09-2010, 02:30 AM
RE: vu2005 php5-cgi - kilburn - 01-09-2010, 02:46 AM
RE: vu2005 php5-cgi - legion726 - 01-09-2010, 02:56 AM
RE: vu2005 php5-cgi - pgentoo - 01-09-2010 07:28 AM
RE: vu2005 php5-cgi - just_hoster - 01-20-2010, 10:06 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)