I've hit a complete wall here and it's driving me mad. I've got a centOS server that periodically crashes because /tmp becomes full. Rather than just increase the size (500mb), I want to understand what's actually happening.
The directory goes from 3% full to 100% overnight and every time it's a similar situation. One large 400MB file is being created without any extension name. The file is always named "php" and then randomly generated letters/numbers. Apache seems to be using this file.
It's not a php session file. When I run sys_get_tmp_dir the output is /tmp. However; upload_tmp_dir is the directory I specified in php.ini and save_session_path is actually /var/lib/php/session.
From what I've read it sounds like this is a temp file created via phps tmpfile() or tempnam. But how? And why is it using the system tmp directory? I tried searching to see if I can change this but could only find people telling me to change the upload dir in ini.
I checked and the permissions for the save path are right. The user that Apache runs on has read/write.
Anyone have any ideas? Im not sure what to even google anymore.
[link][10 comments]