Permission for files on WordPress

What should be the permission of files on WordPress in different parent folders like wp-admin, wp-includes, root etc? I need file permissions for files in each folder. Can anyone help me?

Ratul's picture

Permissions for folders and files on WordPress

Permissions for the folder should be 755

find foldername -type d -exec chmod 755 {} \;

Permissions for files beneath wp-content should be set to 0755. The codes should look like-

chmod -R 0755 plugins

Change plugins to uploads, upgrade to change permissions of those.

Permissions for the file should be 644

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

 

Vote the answer: 
0
No votes yet