Turn Your Vehicle Into a Smart Earning Asset

While you’re not driving your car or bike, it can still be working for you. MOTOSHARE helps you earn passive income by connecting your vehicle with trusted renters in your city.

🚗 You set the rental price
🔐 Secure bookings with verified renters
📍 Track your vehicle with GPS integration
💰 Start earning within 48 hours

Join as a Partner Today

It’s simple, safe, and rewarding. Your vehicle. Your rules. Your earnings.

WHM/cPanel Log Directories

In a Linux server running WHM/cPanel, logs are stored in several key directories depending on the type of activity being logged.
Here’s a full breakdown of where to find them and how to check their sizes 👇


🧭 Main WHM/cPanel Log Directories

Log TypeLocationPurpose / Description
cPanel Access Logs/usr/local/cpanel/logs/access_logLogs every login and action performed via cPanel/WHM interface.
cPanel Error Logs/usr/local/cpanel/logs/error_logErrors related to cPanel and WHM UI or backend scripts.
cPanel License Log/usr/local/cpanel/logs/license_logLogs communication with the cPanel license server.
cPanel Update Log/var/cpanel/updatelogs/Logs of automatic updates (upcp) and maintenance scripts.
Mail Logs (Exim)/var/log/exim_mainlog/var/log/exim_rejectlog/var/log/exim_paniclogLogs for sent mail, rejected mail, and critical errors respectively.
FTP Logs (Pure-FTPd / ProFTPD)/var/log/messages/var/log/xferlogFile transfer logs.
Apache (HTTP) Logs/usr/local/apache/logs/access_log/usr/local/apache/logs/error_logLogs all website hits and errors.
MySQL Logs/var/lib/mysql/hostname.err/var/log/mysqld.logLogs database startup, shutdown, and errors.
cPHulk Brute Force Logs/usr/local/cpanel/logs/cphulkd.logLogs blocked IPs and login attempts.
CSF / LFD Firewall Logs (if installed)/var/log/lfd.logLogs login failures, blocks, and alerts.
Cron Logs/var/log/cronLogs all cron jobs run on the system.

📦 Check Log Sizes

You can use the following commands to check total or individual log sizes:

🔹 Check size of all logs under /usr/local/cpanel/logs

du -sh /usr/local/cpanel/logs/*

🔹 Check total size of cPanel logs directory

du -sh /usr/local/cpanel/logs

🔹 Check top 10 largest log files on the system

sudo du -ah /var/log /usr/local/cpanel/logs | sort -rh | head -10
Code language: JavaScript (javascript)

🔹 Human-readable disk usage summary

df -h

🧹 Optional: Clean or Rotate Logs

If logs become large, you can rotate or clear them safely.

Rotate logs (built-in system)

/usr/local/cpanel/scripts/logrotate

Manually truncate a large log

(Example: clear Apache access log)

> /usr/local/apache/logs/access_log
Code language: JavaScript (javascript)

🧩 Tip: Watch Logs in Real-Time

You can monitor specific log activity live:

tail -f /usr/local/cpanel/logs/error_log

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x