The disk on a Ubuntu server filled up causing a website to fail and some database corruption. After freeing some space (rogue wordpress backup plugin) and reimporting the database we found some functions of the site where not working.
I fixed some of the problems by changing the PHP upload_tmp_dir do be something other than /tmp. I still had issues but then I changed the mysql tmpdir to be something other than /tmp
/tmp was owned by root, had 777 permissions and I was able to write to it at the command line. I've not yet removed and recreated the directory as I want to understand the problem.
What could be causing the problems with applications writing to /tmp? How can I diagnose and get to the root of this issue?
www-datauser to/bin/bash(withchsh), changing to thewww-datauser (withsu www-data) and then seeing if you can write to the/tmpdirectory from there. That should make it a bit easier to debug. Importantly, though, don't forget to change the shell forwww-databack to/bin/falseafterwards. – Andy Smith Jun 30 '11 at 10:46www-datauser can write to it. – Andy Smith Jun 30 '11 at 13:45/tmpis your problem, at least as far as PHP is concerned. Maybe MySQL or Apache are trying to use/tmpfor something, and need restarting? – Andy Smith Jun 30 '11 at 14:27