WP3.0 Media Uploader “Unable to create directory”
-
I have real difficulties getting the media upload functionality to work. I’ve searched this forum and google and read several posts on the topic with various solutions, but so far not found a solution.
When I try to upload a file (jpg, pdf) using the media manager I get the following error message:
“test.jpg” has failed to upload due to an error Unable to create directory /usr/local/www/domainname/www/blog/wp-content/uploads/2010/06. Is its parent directory writable by the server?
In wp dashboard > Settings > Media: Store uploads in this folder “wp-content/uploads”.
Organize my uploads into month- and year-based folders: ticked.The wp-content/uploads directory has permission 755. I have tried with 775 and this did not help either. I can put the folder to 777 with recursion for subfolders and then be able to upload files. But 777 is a bad idea. I can change wp-content/uploads back to 755 and upload images but then all subfolders like “2010/06” will each have 777 for folders and 666 for files.
If I create wp-content/uploads/2010/06 manually and assign 755 for folders and then try to use the media uploader I get error message
The uploaded file could not be moved to
.If I create a new directory “wp-content/stuff” and set it up on the dashboard, settings > media I have the exact same problems as with
“wp-content/uploads”, ie the upload only works with folder permission 777.I guess the reason I having problems with permissions 755 for folders and 644 for files has something to do with the way the host has setup php, apache etc.
The host is not using mod_security and are has safe_mode=off.
Any ideas what I should be looking at on the host settings for php/apache?
- The topic ‘WP3.0 Media Uploader “Unable to create directory”’ is closed to new replies.