Correct file permissions for WordPress

I have some confusion about the file permission because i am unable to upload images at my WordPress site. I believe that issue is related to file permission.

So What permissions should I have for the following:

  1. root folder storing all the WordPress content
  2. wp-admin
  3. wp-content
  4. wp-includes

and then all the files in each of those folders?

Asked on November 9, 2019 in Wordpress.
Add Comment
  • 1 Answer(s)

    It should be 755 for folders and 644 for files.

    find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x
    
    find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r--
    
    Answered on November 12, 2022.
    Add Comment

    Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.