For all the folders and files.
Please give some explained answer.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
All files should be writable only by your user account. So the correct permissions for files and directories are:
- Directories: 755
- Files: 644
You may want to secure some files:
- wp-config.php: for maximum security, this file should be made writable by your user only or its group. This means 400 or 440 permission
- .htaccess: 666 permission, so that WordPress can automatically generate rewrite rules for you
- wp-content/: some plugins and themes may require write access to this directory. you will be prompted when necessary.
- wp-content/themes/: 664 permission if you want to use the theme editor
References:
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0