Php Setups

Discussion in 'General OpenLiteSpeed Discussion' started by Ahmed Mafaz, Dec 10, 2017.

Tags:
  1. Ahmed Mafaz

    Ahmed Mafaz New Member

    Hello,
    Im currently using ea4 Apache with php7.0 fpm.
    Tested openlitespeed v1.4.28.
    How do we setup php as process group.
    When i was using Litespeed it was as simple as putting a bit of stuff in an apache include file:

    <IfModule LiteSpeed>
    LSPHP_ProcessGroup on
    LSPHP_Workers 15
    </IfModule>

    Also currently with ea4 php-fpm pools my settings are:
    Max children: 10
    Process idle timeout: 10
    Max request: 20

    With the max children always at 10 with ea4 php-fpm i cant seem to set that with my openlitespeed php setup.
    Even when i edited the environment variable:
    LSAPI_CHILDREN
    Max connections

    Even when i set those two variables to 10 i always seems to have more than 10 processes of lsphp.
    Help appreciated, Thankyou.
     
  2. lskagan

    lskagan Administrator

    It will be 10 lsphp processes per account but OpenLiteSpeed does not support working with Apache + cPanel.
     
  3. Ahmed Mafaz

    Ahmed Mafaz New Member

    Hello,
    Im not using OLS with Apache.
    To simplify, I have 1 account on my server.
    When i setup LSAPI_CHILDREN and max connections in to lets say 10, running top shows more than 10 lsphp processes.

    Also how to set up process groups ?
    Is it a Litespeed only feature ?
    Thankyou.
     
  4. lskagan

    lskagan Administrator

    For each OLS process you have it will spawn a main LSPHP process for each account. At which point it will spawn up-to how many children you specified.
     
  5. Ahmed Mafaz

    Ahmed Mafaz New Member

    Thankyou. This was what i was searching for hehe :)
     

Share This Page