ShineDesign Posted January 5, 2005 Report Share Posted January 5, 2005 (edited) Hi all, I've realized that every week or so, my apache server cannot start httpd because the /var/log folder fills up, and gives the error: Warning, free space in </> is <0> (which is inferior to <2000> If I delete the appropriate logs from this directory, httpd will start agan. It stands to reason that if I can allocate more space to /var/log, the folder wouldn't fill up and my website wouldn't go down every week or so. Anybody know how this can be done? Thanks! Edited January 5, 2005 by ShineDesign Quote Link to comment Share on other sites More sharing options...
fissy Posted January 5, 2005 Report Share Posted January 5, 2005 you need to find out which partition /var/log is on (probably part of /) and try and make it bigger or delete some stuff! Quote Link to comment Share on other sites More sharing options...
ShineDesign Posted January 5, 2005 Author Report Share Posted January 5, 2005 It is part of the / partition, but the weird thing is that partition has 6GB of space. Only about 800MB are being used...so there's always over 5GB of space available. Even with that much available, the /var/log folder will stop httpd from running if it gets more than 20 logs (on average). Is there somewhere that specifies the maximum space allowed for the /var/log folder? Like in windows, how it only allows a certain amount of space for the trash bin etc... Quote Link to comment Share on other sites More sharing options...
bvc Posted January 6, 2005 Report Share Posted January 6, 2005 Is there somewhere that specifies the maximum space allowed for the /var/log folder? Like in windows, how it only allows a certain amount of space for the trash bin etc... <{POST_SNAPBACK}> I've never seen such a place but that sounds like what the prob is. Wouldn't it be httpd? Quote Link to comment Share on other sites More sharing options...
Guest anon Posted January 6, 2005 Report Share Posted January 6, 2005 You should use logrotate and run it as a cron job. Access it from webmin if you like, or for full info open a consol and type: man logrotate Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.