PDA

View Full Version : shared hosting setup


Elfz
07-07-2009, 11:24 PM
I'm running a quad with 4GB ram... my current setup:

max connections: 55
PHP_LSAPI_MAX_REQUESTS=17500
PHP_LSAPI_CHILDREN=55
LSAPI_MAX_IDLE_CHILDREN=1
LSAPI_MAX_IDLE=10
Initial Request Timeout (secs): 30
Connection Keepalive Timeout: 10
Run On Start Up: yes
Auto Start: yes
Persistent Connection: yes


anything i could improve on?

mistwang
07-10-2009, 02:32 PM
If you using PHP suEXEC,

LSAPI_MAX_IDLE_CHILDREN=1
LSAPI_MAX_IDLE=10


have no effect.
Instead, should set "Max Idle Time" to "10" seconds.
Initial Request Timeout can be set longer if user has difficulty to process a script takes long time to finish.

Connection Keepalive Timeout should be -1 to keep the connection alive as long as PHP process is alive.