As I was writing my article about the installation process of Openfire, I’ve tried to upload a file but got an error message instead of my file
wordpress/wp-content/2009/03/wordpress_27_missing_tmp_directory-300×124.png” alt=”wordpress_27_missing_tmp_directory” width=”300″ height=”124″ />
Because I wasn’t able to upload a file, I’ve done a quick google search and found this blog entry
.
The problem was easy to fix: the upload_tmp_dir is not set in php.ini.
After adding
1 | php_admin_value upload_tmp_dir /var/www/domain/php/upload |
to my Apache Vhost-configuration and doing a reload, everything worked as expected.
Thanks, Dwight Jack!
Hello,
That post from Dwight Jack is no longer online and your explanation is a little… ‘concise’?
Could you post some more step-by-step info about how to fix this error. I’m using WP 2.8 on Mac OS X Xampp.
Hello Marc,
Create a folder in your home directory and give permissions (read and write) to everyone. Then you’ll have to set “upload_tmp_dir” to the folder created before in your php.ini (I can’t tell you, where this file is located in Xampp on Mac OS X, sorry). The value for upload_tmp_dir must be an absolute path. And don’t forget to remove the ‘;’ in front of upload_tmp_dir.
HTH & HAND
Steffen