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:
- root folder storing all the WordPress content
- wp-admin
- wp-content
- wp-includes
and then all the files in each of those folders?
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--