Random 503 error

Discussion in 'General' started by fernandomm, Aug 18, 2011.

  1. fernandomm

    fernandomm Active Member


    I'm running PHP 5.2.17 ( no opcode cache ), Litespeed 4.0.20 and Cpanel 11.30.2.

    A lot of customers complain about getting random 503 errors and i can see it in litespeed logs. This was not happening when running apache.

    Check this, for example:

    2011-08-18 13:42:30.109 [INFO] [****:18022-2#APVH_h.es] connection to [/tmp/lshttpd/APVH_h.es_Suphp.sock.141] on request #0, confirmed, 1, associated process: 86702, running: 1, error: Connection reset by peer!
    2011-08-18 13:42:30.109 [NOTICE] [****:18022-2#APVH_h.es] POST request in process stage, fail with 503 
    2011-08-18 13:42:30.109 [NOTICE] [****:18022-2#APVH_h.es] oops! 503 Service Unavailable
    What should i do to fix these litespeed problems?

  2. webizen

    webizen Well-Known Member

    the error indicates 503 error was due to PHP script crashed. check the log entries before and after the 503 error in question to which php script was called. Also make sure LSPHP is matching with PHP on that server.
  3. fernandomm

    fernandomm Active Member

    There is nothing before it. After it, only the request line and the cookie len which does not clarify the cause of the problem.

    I can do the same action with Apache without getting any error.

    Also, php's error_log does not have any new entry.
  4. cmanns

    cmanns Well-Known Member

    Try stracing a php process of said vhost that crashes.

    Also try re-building PHP and forcing a reinstall of latest LSWS. :rolleyes:

Share This Page