cPanel/WHM

Fix LiteSpeed and Apache Frequently Restarted in cPanel/WHM

If you are using cPanel/WHM and having a problem where LiteSpeed or Apache frequently restarted, this is the solution.

These graceful restarts are part of the log rotation. If you want to minimize the restarts, then you may want to consider switching to the piped logging option instead for logging.

To do this login to WHM and follow the path below.

WHM → Service Configuration → Apache Configuration → Piped Log Configuration

check “Enable piped Apache logs” then click Save button.

Details about the the log file rotation is available here.


Force LiteSpeed to Update to Latest Version on cPanel/WHM Server

Sometimes you find out that LiteSpeed won’t update to the latest version automatically. The worst is you can’t see the option to update to the latest version, although LiteSpeed has released a new version.

This happened to me when I’m using LiteSpeed version 4.1.3. LiteSpeed version 4.2 was released for about a montha but yes I can’t update it.

If you’re facing similar situation, you can update to the latest version, simply issue the following command in SSH as root.

/usr/local/lsws/admin/misc/lsup.sh -f -v 4.2

Replace 4.2 to latest version that is currently available.