Knowledge Base
Understanding File Permissions in DirectAdmin
File and Folder Permissions Explained
Proper permissions keep your website secure while allowing it to function.
Permission Numbers
| Number | Permission |
|---|---|
| 0 | No permission |
| 1 | Execute |
| 2 | Write |
| 4 | Read |
Add numbers together: Read(4) + Write(2) = 6
Common Permission Settings
- 644 - Files (owner read/write, others read)
- 755 - Folders (owner full, others read/execute)
- 600 - Private files (owner read/write only)
- 777 - Full access (AVOID - security risk!)
Changing Permissions in DirectAdmin
- Open File Manager
- Select the file or folder
- Click Chmod in the toolbar
- Enter the permission number or check boxes
- Click Save
WordPress Recommended Permissions
- Files: 644
- Folders: 755
- wp-config.php: 600
Troubleshooting Permission Errors
If you see "Permission denied" errors:
- Check the file/folder permissions
- Make sure the owner is correct
- Set folders to 755 and files to 644