LiteSpeed

LiteSpeed logs and Real-Time Stats: monitor your web server (root guide)

Read LiteSpeed error, access and stderr logs and use WebAdmin Real-Time Stats as root to find busy sites, slow PHP, throttled clients and configuration errors.

AdvancedcPanel server with LiteSpeed (root)2 min read

When a LiteSpeed server is slow or returning errors, two places tell you most of what you need: the LiteSpeed logs and the Real-Time Stats page in the WebAdmin console.

MdmHost monitors this on its hosting plans. This guide is for administrators of their own LiteSpeed cPanel server.

Before you start

  • LiteSpeed Enterprise on cPanel (see installing LiteSpeed).
  • Root SSH access and the WebAdmin password.

Log files

FileWhat it contains
/usr/local/lsws/logs/error.logServer errors, throttling, bans, config problems, restarts
/usr/local/lsws/logs/stderr.logOutput from external apps such as lsphp crashes
/usr/local/apache/domlogs/ (or /etc/apache2/logs/domlogs/)Per-domain access logs; cPanel keeps using these paths with LiteSpeed
/usr/local/lsws/logs/access.logServer-level access log, if enabled

Follow errors live:

tail -f /usr/local/lsws/logs/error.log

Useful patterns

  • [ERROR] lines after a restart point to configuration errors.
  • banned or throttle lines show per-client limits in action (see anti-DDoS settings).
  • lsphp and Child process messages show PHP problems, often linked to 503 errors.

Real-Time Stats

  1. Open WebAdmin at https://your-hostname:7080.
  2. Go to Actions → Real-Time Stats.
  3. Review the server summary: throughput, connections, requests per second and cache hits.
  4. Scroll to Virtual Hosts and sort by Req/Sec or Processing to find the busiest sites.
  5. Check External Applications for lsphp pools with long wait queues, a sign of slow PHP or limits.

Tip: A high number of requests in "Processing" for one virtual host usually means slow PHP or database queries for that site. Trace it with X-Ray or check its CloudLinux faults.

Combine with CloudLinux data

LiteSpeed shows which site is busy; CloudLinux shows whether that account hits its limits. Use lvetop and lveinfo together with Real-Time Stats (see lveinfo and lvetop).

Log rotation

LiteSpeed rotates its own logs by size; cPanel rotates domain logs. If /usr/local/lsws/logs grows large, check the Log settings under Configuration → Server → Log for rolling size and retention.

Troubleshooting

Real-Time Stats shows nothing

The server was just restarted or WebAdmin is connected to the wrong instance; wait a minute and refresh.

Frequently asked questions

Can users read these logs?

Users see their own domain errors in cPanel → Metrics → Errors and raw access logs in cPanel; server logs are root-only.

What cache hit rate is good?

For WordPress-heavy servers with LSCache, a majority of HTML requests served from cache is a healthy sign.

How do I report a LiteSpeed bug?

Collect the error log lines and version (lshttpd -v) and contact LiteSpeed support with your licence details.

How do I find the top IPs hitting a site?

Run awk '{print $1}' on the domain's access log, then sort | uniq -c | sort -n | tail. Bots and attackers stand out quickly.

Does logging slow LiteSpeed down?

Normal access and error logging has negligible overhead. Keep debug logging off except while troubleshooting.

Can I export Real-Time Stats?

LiteSpeed writes the same counters to report files under /tmp/lshttpd/ which monitoring tools can read.

Was this guide helpful?

Still stuck?

Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.