0
votes

I am trying to upload an image to set a background image for my theme, but I get this error:

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

I tried to change the access permissions with the help of these blogs:

  1. https://www.digitalocean.com/community/questions/setting-permissions-for-wordpress
  2. https://gist.github.com/Adirael/3383404

But nothing has helped me, and now I also get a 500 error page.

I'm stuck here, can anybody help?

-----------Comment----------- Output Image for ps -ef| grep httpd

I executed this command

find . type f -exec chmod 644 {} \;

and the 500 error page is not being displayed now. I am able to view my web page. But I am still unable to upload a background image. (same error appears "Unable to create directory wp-content/uploads/2018/05. Is its parent directory writable by the server?")

1
Hello, you need to give write permissions on the folder wp-content/uploads/ , check this article from WP. codex.wordpress.org/Changing_File_Permissions - josedasilva
Hi @josedasilva I tried changing the access permissions. Here are the screenshots for the currently set permissions, - Pooja

1 Answers

1
votes

The following command will fix your issue

sudo chmod -R 777 wp-contents/uploads/