Setting PHP without timeout

Discussion in 'Install/Configuration' started by andych, Jul 17, 2013.

  1. andych

    andych New Member

    How do we do this?

    Because I had a lots of 500 and 503 Internal Server Errors, so I want LS to allow PHP running indefinitely.

    Because my PHP apps had a lots of processing time (e.g.: doing MySQL Maintenances, etc)


    I don't have any clue how to set this (I mean the values to change)
  2. webizen

    webizen New Member

    Admin CP = LiteSpeed Web Admin Console.

    php.ini = php.ini file used by LSPHP. In general, you run from command line to find it.

    /usr/local/lsws/fcgi-bin/lsphp5 -i| grep "Loaded Configuration"
  3. andych

    andych New Member

    I set:
    max_execution_time = 900
    in php.ini but PHP apps still killed at 45 secs.

    It returns me the following error page:
  4. NiteWave

    NiteWave Administrator

    is your lsws version 4.2.3 ?
  5. andych

    andych New Member

    Yes, it is :)
  6. NiteWave

    NiteWave Administrator

    please try
    admin console->Server->General->External Application Abort:No Abort

    see if it helps.
  7. andych

    andych New Member

    still killed at 45th second.
  8. NiteWave

    NiteWave Administrator

    what's your web server's setting:
    Server->Tuning->Connection Timeout (secs)

    Server->External App->lsphp5
    Initial Request Timeout (secs)
    Connection Keepalive Timeout
  9. andych

    andych New Member

    Server->Tuning->Connection Timeout (secs) => 45
    Server->External App->lsphp5->Initial Request Timeout (secs) => 60
  10. NiteWave

    NiteWave Administrator

    Server->Tuning->Connection Timeout (secs) => 45
    match your magic 45 seconds issue :)

    try to increase it

Share This Page