This tutorial is part of our WordPress installation and WordPress management tutorial series, where we show you how to install and manage your WordPress website or blog with no coding skills required.
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.
This tutorial explains how to configure permission settings for files and directories 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 files yourself, then use a professional service, or use backup plugins.
Learn about a WordPress backup plugin that can fully 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 directories.
(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 hackers 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 experience errors after changing permission settings, change the permission settings back to what they were and see if the error messages disappear. 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.
"I have used the tutorials to teach all of my clients and it has probably never been so easy for everyone to learn WordPress ... Now I don't need to buy all these very expensive video courses that often don't deliver what they promise." - Stefan Wendt, Internet Marketing Success Group
Disclaimer: We have no direct association with WordPress, Automattic, or any of the products promoted on this website. We may derive affiliate commissions or financial benefits from purchases of any products or services advertised, reviewed or linked from this site. All product images remain the copyright of their respective owners, comply with all license terms and agreements of use to the best of our knowledge and are used solely for illustrative or training purposes.
Was this article useful? Feel free to share this information with anyone thinking of starting or growing their business online using the links below.