Log in

View Full Version : How do I make a cron job to erase access logs?


Magnusson2u
04-03-2004, 10:30 PM
Every 3 weeks my database/tables crash because my access logs use-up all my space. They told me to create (my host) a cron job to erase my access logs every 2 weeks. So, how can I make one and install it?

I really have no knowledge of any of this.

Please assist me!

Magnus

13th_Disciple
04-03-2004, 10:47 PM
a cron job that you are refering to is specifically server-side.. not the "cron" that vBulletin is using..

you just need to prune threads and such is what it seems to me.. how big is your DB?

Magnusson2u
04-03-2004, 11:22 PM
not large at all (60-90megs), but it fills in 700megs of space monthly with the access logs?

I guess since it's servr side that it reallly has ZERO to do with VB. Sorry!
If anyone can help please feel free to post or rather pm me.

thanks

13th_Disciple
04-04-2004, 01:43 AM
ok.. those are your apache access-logs.. you can do a "man cron" as well as "man crontab" and read up on cron inside your server or just have a look here at this intro to cron at unixgeeks..

http://www.unixgeeks.org/security/newbie/unix/cron-1.html