So. I had a problem with one of my customers wordpress sites this evening: when uploading content I kept on getting this error:
Unable to create directory /home/username/public_html/wp-content/uploads/2010/07. Is its parent directory writable by the server?
As I hadn’t changed anything and had been able to upload images easily enough before so I was a tad perplexed. After a little googling I thought it might be a permissions problem.
The permissions on my wp-content/uploads directory were set to the default setting of 755 but I read that occassionally it might be helpful to change this to 777 to correct such a problem.
Logging in via FTP I changed the permissions to 777 but to no avail + later googling led me to suspect this might not be too good an idea. See here for more info.
So it was back to google and I stumbled across this excellent article, which gave me a few other ideas. It was point three:
3. If this doesn’t work. Check the upload path in the admin – Settings – Miscellaneous and make sure it is wp-content/uploads sometimes the upgrade or server move changes it to the absolute path.
that worked for me too.
But it wasn’t so easy to find the Miscellaneous Settings as they have moved since the upgrade to WordPress 3.0. And WordPress doesn’t make it easy to find. Oh no. But a couple of pages into their help files, I stumbled across this page and found the answer.
The Miscellaneous Settings controlling the upload of Media files are now stored, perhaps more sensibly, under Settings > Media. Just make sure that your setting for the upload path is set to: wp-content/uploads and you’ll be just fine.
This has happened on all my WordPress 3.0 blog upgrades on Dreamhost so I hope this helps anyone in the same position.
Thanks to Paulo Orquillo and Tips & Tricks HQ for pointing me in the right direction.
I’m a small business consultant enabling small business owners to achieve sustainable growth, whilst working part-time at Tees Valley Arts. For more about me personally see peterneal.co.uk