WordPress error “Is its parent directory writable by the server?”

I was not able to upload images to my wordpress post after i transferred my entire wordpress to a new host. The error returned was
“Unable to create directory /blog/wp-content/uploads/2010/xx. Is its parent directory writable by the server?”

Tried changing the permission of the wp-content folder and its subdirectories to 775 and then to 777.

[jaguars]$ chmod -R 775 wp-content/
......
......
[jaguars]$ chmod -R 777 wp-content/

But both didnt work.. :(

Next,
The wordpress upload folder was set to /blog/wp-content/uploads in the Settings > Miscellaneous
Changed this to blog/wp-content/uploads (removed the ‘/’ before blog)
Now uploading works, but still there was a problem. The files are uploaded and saved to new folder /blog/blog/wp-content/uploads [two ‘blog‘ in the path.]

Finally, changed the upload folder to wp-content/uploads in the Settings > Miscellaneous
Everything works perfect now.

I changed back the permission setting to 755

[jaguars]$ chmod -R 755 wp-content/ 

I guess the misconfiguration happend because, in my earlier installation, wordpress was installed into root. and in here to the /blog directory.

Leave a Reply

Your email address will not be published. Required fields are marked *


five − 2 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>