CHMOD Files
- Uploading Files
- CHMOD Files
The steps on this page depend on what platform your server is running on. Most web-hosts run Linux servers, but if you are in doubt, you may check with your web host.
*nix servers
Introduction
MyBB requires certain files and directories to have different permissions in order for it to write to the files. However, the permissions required also depend on how your server is setup. Folders usually should be set to 777. Setting files to 777 will provide read/write/execute access to any user of the server, which may be a security risk, but provides the least troublesome install and operation. You can usually give 666 access to files.
If you are using a GUI program (where you do not have to use commands to perform actions, such as SmartFTP or Filezilla, then usually, you should be able to right click on the file you wish to CHMOD and select something such as "Properties" or "CHMOD." In SmartFTP 2.0, the option is called "Properties / CHMOD." When you have found the right window, most likely there will be checkboxes letting you choose the Permission.
If your server is run as a CGI module, the user that is used is usually the root or main user. As such, permission for 'group' and 'other's can be set to a lower value if you need added security.
Required Changes
Note: You need to rename the config.default.php to config.php first!
The files and folders that require CHMODing for MyBB to install are
filename CHMOD Permission -------------------------------------------- ./inc/config.php >> 666 ./inc/settings.php >> 666 ./cache/ >> 777 ./cache/themes/ >> 777 ./uploads/ >> 777 ./uploads/avatars/ >> 777
All of which can be done with the following commands (if you have shell access) from your MyBB root (see below for the full version with optional changes):
chmod 666 inc/config.php inc/settings.php chmod 777 cache cache/themes uploads uploads/avatars
Optional Changes
The files and folders that may be CHMOD for extra functionality are
filename CHMOD Permission -------------------------------------------- ./admin/backups/ >> 777 ./inc/languages/english/*all files* >> 666 ./inc/languages/english/admin/*all files* >> 666
All of which can be done with the following commands (if you have shell access) from your MyBB root:
chmod 666 inc/config.php inc/settings.php inc/languages/english/*.php inc/languages/english/admin/*.php chmod 777 cache cache/themes uploads uploads/avatars admin/backups
See Also
Windows Servers
If your forum is running on a Windows server (note we are not talking about your computer, but the server where your files are going to be), you may need to clear the read-only flag for the above files. Please contact your web host for details on how to do this.