Problem Fix

Fix Unable to create directory for wordpress media on linux machine

I have my localhost running on /var/www . My wordpress directory resides there. I was just trying to upload some media file on there, but it failed saying

Unable to create directory wp-content/uploads/2018/01. Is its parent directory writable by the server?

Unable_to_create_directory
Unable to create directory

To solve this issue you just need to change the permission
use either one of this

in my case its sudo chmod 775 /var/www/. . ./wordpress/wp-content
775 will give all permission except write by anybody.
here’s a nice explanation why 775

whereas 777 give user,group and others to read,write and execute permission.
So from my opinion its better to use 775
Hope this will help. -THANKS

Share this post
Be the First to comment.

Leave a Comment

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