Web Hosting Talk







View Full Version : tmp


ntwaddel
07-14-2002, 11:21 PM
has anyone ever had problems with their tmp filling up, and having apache not serve out pages anymore?

I dident realize mine filled up the other day.

so i added this script in the cron.monthly folder, what do you guys think?

#!/bin/sh
rm -rf /tmp/*


will this work?

infinite
07-15-2002, 04:31 AM
Hi,

if your tmp directory fills up, then quite a lot of programs will fail as they use that directory, not just apache.

You could remove files from that directory each day, or every other day, at midnight, or when your server is very quiet.

If it's one script in particular, then make sure it cleans up after itself, but still clean out your tmp directory daily, or weekly at least.

HTH,
Infinite :)

and yes, that should clear up your tmp directory, perhaps you could use find to remove only files that are over one day old?

Jedito
07-15-2002, 05:14 AM
Do you use mod_gzip? I had the same problem until I moved the temp mod_gzip files to another folder.

chirpy
07-15-2002, 09:33 AM
Have a look at tmpwatch

man tmpwatch

ntwaddel
07-15-2002, 12:48 PM
Originally posted by Jedito
Do you use mod_gzip? I had the same problem until I moved the temp mod_gzip files to another folder.

yeah, i do have mod_gzip installed, i am gonna look into that.

thanks!!

apollo
07-15-2002, 02:29 PM
rm -rf /tmp/* will wipe out some temporaly data that is used..... (for example, PHP sessions if you are using it)..... try tmpwatch as the user above suggested

ntwaddel
07-15-2002, 02:33 PM
thanks :D