Title: Access Permissions WordPress
Last modified: May 10, 2018

---

# Access Permissions WordPress

 *  Resolved [codeforweb](https://wordpress.org/support/users/codeforweb/)
 * (@codeforweb)
 * [8 years ago](https://wordpress.org/support/topic/access-permissions-wordpress/)
 * 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](https://www.digitalocean.com/community/questions/setting-permissions-for-wordpress)
   2. [https://gist.github.com/Adirael/3383404](https://gist.github.com/Adirael/3383404)
 *  but this hasn’t helped me. I am stuck at this point. Can anyone help me through
   this?
 * I’m not sure what permissions I have changed and now I also get the 500 error
   page. I am not able to access my web page.
    -  This topic was modified 8 years ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years ago](https://wordpress.org/support/topic/access-permissions-wordpress/#post-10266960)
 * How are you hosting your site?
 * What did you change?
 *  Thread Starter [codeforweb](https://wordpress.org/support/users/codeforweb/)
 * (@codeforweb)
 * [8 years ago](https://wordpress.org/support/topic/access-permissions-wordpress/#post-10267348)
 * Hi Steve,
 * I hosting my site on a Red Hat Linux on which I have set up a LAMP stack server.
   I read in a blog that changing access permission would fix the file upload error
   and followed the steps provided in links 1 and 2(mentioned in my question).
 * I feel the 500 error that I am getting now, is due to the permissions I have 
   set up. I have taken screenshots to show. But can I upload images in this forum
   or is there another way to show them?
 *  Thread Starter [codeforweb](https://wordpress.org/support/users/codeforweb/)
 * (@codeforweb)
 * [8 years ago](https://wordpress.org/support/topic/access-permissions-wordpress/#post-10267377)
 * Here is the link for the screenshot of my access permissions that I have set,
 * [Link1](https://expirebox.com/download/5c4fa0af1f30a124625c489997a953c2.html)
 * [Link2](https://expirebox.com/download/14817bcb64e0a184f01ca44e8454eea8.html)
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years ago](https://wordpress.org/support/topic/access-permissions-wordpress/#post-10267389)
 * What is the user under which PHP is running? The file tree in which you’ve installed
   WordPress must be owned by that user.
 * `ps -ef |grep php` if you’re using php-fpm. Otherwise, the owner should probably
   be ‘apache’. Also, if you have SELinux activated, you need to ensure that the
   SELinux permissions are correct, too.
 * Permissions should be 755/644.
 *  Thread Starter [codeforweb](https://wordpress.org/support/users/codeforweb/)
 * (@codeforweb)
 * [8 years ago](https://wordpress.org/support/topic/access-permissions-wordpress/#post-10267540)
 * When I run this command ps -ef |grep php, its says PHP is running under root 
   user. Also I checked(cat /etc/sysconfig/selinux) SE Linux is in enforcing state,
   but how do I change them to 755/644??
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years ago](https://wordpress.org/support/topic/access-permissions-wordpress/#post-10267582)
 * SELinux and file permissions are not related.
 * This isn’t the place for Linux sysadmin training, but I do recommend that you
   use php-fpm rather than a straight LAMP stack.
 * [https://wp-root.org/server/install-php-fpm-tcp-unix-sockets-centos/](https://wp-root.org/server/install-php-fpm-tcp-unix-sockets-centos/)
 *  Thread Starter [codeforweb](https://wordpress.org/support/users/codeforweb/)
 * (@codeforweb)
 * [8 years ago](https://wordpress.org/support/topic/access-permissions-wordpress/#post-10267974)
 * 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?”)
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years ago](https://wordpress.org/support/topic/access-permissions-wordpress/#post-10268094)
 * what is the ownership and permissions of the parent directory?
 *  Thread Starter [codeforweb](https://wordpress.org/support/users/codeforweb/)
 * (@codeforweb)
 * [8 years ago](https://wordpress.org/support/topic/access-permissions-wordpress/#post-10268284)
 * The directory in which I have my WordPress theme is rr.
    My permissions are
 * /var/www – rwxr-xr-x (owner-root)
    /var/www/html – rwxr-xr-x (owner-root) /var/
   www/html/rr – rwxr-xr-x (owner-nobody) /var/www/html/rr/wp-content – rwxr-xr-
   x (owner-nobody)
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [8 years ago](https://wordpress.org/support/topic/access-permissions-wordpress/#post-10268354)
 * make the it all owner:owner where owner is the same user under which PHP is running.
 *  Thread Starter [codeforweb](https://wordpress.org/support/users/codeforweb/)
 * (@codeforweb)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/access-permissions-wordpress/#post-10305242)
 * [@sterndata](https://wordpress.org/support/users/sterndata/)
 * Thanks for the help Steve. I am able to upload the images to my WordPress without
   any issues! :))

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Access Permissions WordPress’ is closed to new replies.

## Tags

 * [500 error](https://wordpress.org/support/topic-tag/500-error/)
 * [upload](https://wordpress.org/support/topic-tag/upload/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 2 participants
 * Last reply from: [codeforweb](https://wordpress.org/support/users/codeforweb/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/access-permissions-wordpress/#post-10305242)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
