Skip to main content

Nearly Full /usr due to huge apache and cpanel folder

Comments

4 comments

  • dalem
    rotate your logs either via cpanel's built it system or via /etc/logrotate.conf
    0
  • caylean
    After reading about logrotation it sounds really nice and even what i needed to solve the second Question, thanks. Checked my WHM for it and i think you mean "cPanel Log Rotation Configuration" ? If so, it is nearly all marked. The only ones that are NOT marked are "cpbackup_transporter.log, cpdavd_session_log, panic_log, setupdbmap_log" An entry for suphp_log i could not find here. In case there is a command line tutorial (explanation) for that i still have to search it, as i have no idea what i would be doing otherwise ;) Edit Just found the Option to add suphp_log Apache Configuration " Log Rotation Here I am able to add the following Logs to the rotator: modsec_debug_log suexec_log suexec_log.offset suphp_log I will add suphp_log directly. Edit 2 I have just added the suphp_log to the rotator and ran the logrotate via commandline "logrotate -f /etc/logrotate.conf" looks like it was correct, as my Disk Usage shows now: Device: /dev/sda6 - Size: 20G - Used: 9.5G - Available: 9.3G - Percent Used: 51% - Mount Point: /usr Thank you very much dalem!
    0
  • dalem
    Your welcome
    0
  • cPanelMichael
    I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.