2

I followed this tutorial on setting up a local web development setup without mamp. Now my problem is when I go to upload a image in WordPress I get the following error:

“Screen Shot 2013-01-05 at 10.51.42 PM.png” has failed to upload due to an error: Unable to create directory wp-content/uploads/2013/01. Is its parent directory writable by the server?

It seems like it might be some sort of permissions error, but I am not sure exactly what to change.

3 Answers 3

4

You need to change the file permissions on your wp-content folder (and containing folders) to 755. On your setup you can do this with:

find . -type d -exec sudo chmod 755 {} \;

Please note that using chmod -R 755 will mark both directories and files as 755.

1
  • 2
    Glat I could help! If my answer solved your problem, please mark it as correct using the green tick to the left of my answer
    – shea
    Jan 6, 2013 at 7:17
2

By far the easiest way on a Mac is to right click on "uploads" , select "Get Info", then change the permissions at the bottom of the "Uploads Info" window to include read and write for the appropriate users.

0

Just change the folder permission to 777 of wp-content.

3
  • *change folder permission of wp-content
    – achidh
    Feb 15, 2021 at 7:14
  • Please edit your answer with more in-depth details on how they can accomplish this. Thanks!
    – Christine Cooper
    Feb 15, 2021 at 8:22
  • shea's answer sets the permissions to 755. Why is 777 better? And I realise the question is about a local development environment but leaving world-writeable files is a bad habit you don't really want to get into.
    – Rup
    Feb 15, 2021 at 9:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.