Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Thu Aug 18, 2011 5:49 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
hybinet wrote:
Sure, you can get it to work if you know what you're doing.


I got it working fine on the first try converting from prefork/mod_php. No wrappers, no xml crap.


Top
   
 Post subject:
PostPosted: Thu Aug 18, 2011 7:11 pm 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
Precisely four lines of basic config (one pretty long, I admit, six parameters), two of which are necessary also for mod_php, plus another six of typical allow/deny stuff securing it up. I'm not using FPM.

There are no wrapper scripts. Not sure what you mean by "xml crap", unless you mean the very same pseudo-HTMLish syntax of all Apache conf files. Yes, if you'll try to "make it work like with nginx" with externally spawned php, you're going to need some insane hacks. But it's possible, at least with mod_fastcgi. It can connect to external socket.
But mod_fastcgi spawns php itself. Reloading php.ini is easy - you just apache2ctl reload, and mod_fastcgi restarts its slave PHP tree. Almost like with mod_php.

"One mistake and you ended up with 5 time as many children as you intended, because each Apache process spawned it own." is total bull.
With mpm-worker, you get
a) An Apache master process
b) One or more worker host processes, running worker threads.
Adding mod_fastcgi to the mix adds
c) An fcgi-pm (process manager), which spawns all your FCGI handlers.
In case of PHP, it spawns the php master listener, which in turn spawns $PHP_FCGI_CHILDREN workers.
You can see that in the snippet of ps axf that I posted above.
There's literally no way to get too many of those, unless you'll mix up the PHP_FCGI_CHILDREN directive and mod_fcgid which assumes "one subprocess = one handler", spawning a new php master for each parallel request up to the limit. You can use fcgid, but then don't use the children directive. That'll limit your ability to use APC, but external memcache could be used.

_________________
rsk, providing useless advice on the Internet since 2005.


Top
   
 Post subject:
PostPosted: Wed Aug 24, 2011 11:44 am 
Offline
Senior Member

Joined: Wed Jun 16, 2010 8:22 pm
Posts: 61
Website: http://www.kevinmccaughey.org
sblantipodi wrote:
Knock on wood as english people says


lmao - priceless :) Thank you hehehehe


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group