Different files and directories on your web server require permissions to be set that specify who can read, write, modify, and/or access your information.
This is important because WordPress may need to access files in your wp-content directory in order to enable certain functions and if these files or directories are not enabled, errors can occur, or WordPress may simply not be able to save your website changes.
In this tutorial, you will learn how to configure file permission settings on your server.
We recommend doing a backup of your WordPress site (files and data) before modifying any files. If you don’t want to back up your data manually, then get support services from a WordPress professional, or use WordPress backup plugins.
You can learn more about a great WordPress backup plugin that can automate your backup process here:
How To Configure File Permission Settings On Your Server
The chmod (abbreviated from change mode) is a command that lets a user tell the system (or server) how much or how little access it should permit a file or a file directory to be given. It changes the file system modes of files and directories, including permissions and special modes.
Basically, file permissions specify what can and can’t be done to your server files and folders.
(Server file permissions specify what can and can’t be done to your files)
Setting File Permission Settings Using ‘CHMOD’
You can view security permissions for files and folders by completing the following steps:
If you are using an FTP program, you can normally change file permission settings on your server simply by accessing your server, locating the directory or file whose permissions you want to change, and then right-clicking on the file and selecting ‘Properties’ …
The CHMOD options should display in the menu. If not, access the help section of your FTP client and search for chmod, permissions, or change mode. Most FTP programs have this feature readily available.
To change or set permissions for your files, simply check or uncheck the permission boxes (for Owner, Group, or Public), or add the desired permission setting number in the Manual display field, then click OK to save …
(Setting CHMOD File Permissions)
Common WordPress file and directory permissions include the following settings:
Setting directory permissions to make your files writable depend on your web hosting environment. For example, to make a file or directory writable, you would normally set (chmod) file permissions either to 777 or 755.
- Only change file permission settings if your WordPress installation or plugin requires it. Normally, this will either be specified in a user manual (e.g. a plugin user manual or installation guide), or if changing file permissions is required while performing some kind of function on your site (e.g. installing or making changes to plugins or themes).
- If performing installations using wizards, a notification message will usually appear on your screen asking you to make a particular file or directory writable, or specifying which permission settings you need to change.
- Unless the change required to the file permission settings is permanent, you would normally restore the file to its original settings after making and saving the change for security purposes (e.g. changing a file from 644 to 755, then back to 644 again). This prevents unauthorized users from accessing and modifying files on your server.
- After making changes to files, refresh your site’s page in your browser to make sure that everything is working correctly.
- Changing file permissions is not complicated. However, if you don’t know what you’re doing or if you are concerned that you might do something that can cause errors, don’t modify any files. Instead, ask your web hosting provider or someone with more knowledge or experience to do this for you.
- If you get error messages after changing permission settings, change the permission settings back to what they were and see if the error disappears. If errors persist after restoring file permissions, contact your web hosting provider for help.
Congratulations! Now you know how to set permissions on server files.
"Learning WordPress has been a huge stumbling block for me. I've been looking for something that covers absolutely everything but doesn't cost an arm and a leg. Thank you so much ... you have just provided me with what I have been looking for! Truly appreciated!" - Tanya