How do I imlement PHP_LSAPI_CHILDREN?

travisbell

Well-Known Member
#1
Hey guys,

I recently installed Litespeed and PHP 5 (w/ APC) as per the how-to's on the site here, and wow, I love the performance!

I was wondering if I should implement PHP_LSAPI_CHILDREN instead of the default way Liltespeed dishes out PHP processes.

I was unclear the real benefits of changing this method and what specifically I need to change to do it.

I am running decently busy forum on a VPS so would like to gain as much performace gain from Litespeed as possible.

Thanks!
 

mistwang

LiteSpeed Staff
#2
To use PHP_LSAPI_CHILDREN, just set it as a environment variable to match "Max Conn" value, set "instances" to 1.
The benefit of doing this is that all PHP processes sharing the same block of memory for the opcode cache, but all PHP processes will be started statically, not on demand. Performance wise, you may not notice big differences.

We are working on a PHP LiteSpeed SAPI module which will start PHP children processes on demand and only use one memory block for the opcode cache. Stay tuned. :)
 
Top