I'm lucky enough to work at a company that allows working from home, but recently my @home pc died suddenly.The motherboard was dead. So being no stranger to having PC's fail, I decided that now was a great time to rebuild my computer, and this time, make the leap to Ubuntu as my @home workstation.
development
My new Ubuntu desktop
Troubles with Drupal, File Uploads, and XAMPP
Ever tear your hair out for hours trying to track down why something is not working, only to find out that it is the simplest thing? Well, after losing a large chunk of my life that is never to return, I am happy to say that it is solved.
While doing some module development on my Mac using xampp, I was running into the problem that file uploads to nodes, either via upload.module or CCK filefield was not working at all. Not in D5, not in D6. Nothing I could do or think of would solve it. Nothing on Google or any other search engine despite my myriad of search terms.
After literally hours trying all I could think of, debugging PHP, JavaScript, etc, I finally found out that Irakli was having the same problem and swooped in to the rescue. Turns out that it was a configuration parameter that was left to “default” in php.ini. By default
; Temporary directory for HTTP uploaded files (will use system default if not specified).
;upload_tmp_dir = Was not actually using a valid system default as best we can tell. Simply changing it to
; Temporary directory for HTTP uploaded files (will use system default if not specified).
upload_tmp_dir = /tmpfixed all if our upload woes and we were back in business.
Now, can I have that last half a day of my life back?

Delicious
Digg
StumbleUpon
Reddit
Technorati
Recent comments
5 hours 51 min ago
20 hours 20 min ago
21 hours 35 min ago
1 day 1 hour ago
1 day 5 hours ago
3 days 3 hours ago
1 week 19 hours ago
1 week 1 day ago
1 week 5 days ago
2 weeks 3 hours ago