whilst i await cPanel to integrate php-fpm (or manage to get it working, has anyone else managed it?)
I am using mpm worker and mod_fcgi and found the default settings very quickly ate up all the ram through processes.
I have a number of sites under different usernames which causes numerous problems with mod_fcgi due to each php process on each account spawning a new mod_fcgi process.
Through reading up various other peoples configs i have arrived at the following.
my current settings in pre virtualhost include are:
This seems to work quite well for the front end of my wordpress sites, which i have cached via Varnish, but via the backend of wordpress i often have to wait until a ProcessLifeTime has been completed and fcgi can spawn a new process.
I believe this setup is a waste in regards to using APC with php due to the fact that each site's opcode cache is located separate from the other sites opcode cache, and of course it only lives for 2 minutes at a time.
The server has 8cores and 8gb of ram to play with. Ideally i would love to use php-fpm so each site can use the same opcode cache (it should help a lot considering every site is wordpress?) but my progress in using php-fpm has hit a brick wall.