[solved] Litespeed restarting automatically, HELP!

Discussion in 'General' started by sahith, Feb 18, 2014.

  1. sahith

    sahith New Member

    My litespeed is getting restarted automatically every3-4 hours. Following is grabbed from Server log viewer for one restart.

    I need help clearing this issue please. I would like to know about those bold lines especially.

    Thank you.
  2. sahith

    sahith New Member

  3. NiteWave

    NiteWave Administrator


    please check your cron jobs, if there is one to restart web server.
    can determine by check the time stamp of restarting, if it's almost in fixed time.

    also check /usr/local/lsws/logs/lsrestart.log, see if any clue from it.


    because file /usr/local/lsws/fcgi-bin/lsphp55 not exist, can be ignored. or just bypass it by
    #cd /usr/local/lsws/fcgi-bin
    #ln -s lsphp5 lsphp55
  4. sahith

    sahith New Member

    grabbed following from the /usr/local/lsws/logs/lsrestart.log

    It seems more restarts happening in a single day. May i know how many cron jobs running in my server at which times?
  5. sahith

    sahith New Member

    I thoroughly checked the following files,

    But couldn't find anything related to restart :(
  6. NiteWave

    NiteWave Administrator

    and these:
    1. /var/spool/cron
    2. /etc/crontab
  7. sahith

    sahith New Member

    I figured it out finally. While rotating logs cPanel restarts webserver. In this case cpanel restarting Litespeed whenever logs like access_log, domlogs reached their threshold. So i disabled those logs which solved my problem.
  8. NiteWave

    NiteWave Administrator

    Thanks for the update, I forgot about the log rotation by cPanel...
    for your reference, I recalled some users use "piped log" in WHM/cPanel to avoid log rotation.

Share This Page