Files uploaded into your server shouldn't be going to /tmp....are you sure this is legit stuff in there?
MediaLayer, LLC - www.medialayer.comLearn how we can make your website load faster, translating to better conversion rates for your business!
The pioneers of optimized web hosting, featuring LiteSpeed Web Server & SSD Storage - Celebrating 10 Years in Business
All the session files will be in the /tmp otherwise it is explicitly diclared.
May be you can add a cron to delete those session files in a timely manner. But it is advicable to check the files in the tmp at times as users can upload malicious scripts to tmp and run it if we don't have strong rules to prevent it.
I think the most secure thing to do, would be to notify your clients that the /tmp directory will become unavailable, then disable webserver access to /tmp using chmod. I had a webhost do this to me once. I just had to add a line to "globals.php", or something like that, to change where php saves session data so it saved it in a folder I had access to.
so if your site is at /home/username/yourdomain you could use:
hope this helps.
True if the partition is created.
Otherwise this work well as there is no space restriction on /tmp or /var/tmp
Also, if there is no partition then there is no need to worry about dd and mke2fs. They can simply execute the lines above and all set.