Skip to content

How to Change File Permissions in DirectAdmin

This guide shows you how to change file permissions using DirectAdmin. File permissions control who can read, write, and execute files on your website.

MediumDifficulty
2–3 minTime
DirectAdminRequired

What are File Permissions?

File permissions determine who can access and modify your files. They are typically shown as numbers like 644 or 755, which represent read, write, and execute permissions.

Step-by-Step Instructions

Login
File Manager
Permissions
Save

Step 1: Login to DirectAdmin

Access your hosting account and open DirectAdmin.

Step 2: Open File Manager

Click on File Manager.

Step 3: Select File or Folder

Right-click or select the item you want to edit.

Step 4: Change Permissions

Select Permissions and update the values.

Step 5: Save Changes

Apply the new permissions.

Common Permission Settings

644

Standard setting for files.

755

Standard setting for folders.

600

Used for sensitive files.

Recommended WordPress File Permissions

If you're running a WordPress website, the following file permissions are recommended for security and proper functionality.

File / Folder Permission Purpose
All folders 755 Allows access but prevents unauthorized changes
All files 644 Standard secure file access
wp-config.php 600 Protects sensitive database credentials
.htaccess 644 Controls redirects and security rules
wp-content/uploads 755 Allows media uploads to function correctly

Important

Avoid setting permissions to 777, as this allows anyone to modify files and can lead to serious security issues.

WordPress Not Working?

Incorrect permissions can cause issues such as:

  • 403 Forbidden errors
  • Images not uploading
  • Plugins or themes failing to install

Important Notes

Security Risk

Permissions like 777 can expose your site to attacks.

Correct Defaults

Most sites work with 644 and 755.

Fix Errors

Incorrect permissions can cause 403 errors.

Common Issues & Fixes

403 Forbidden

Adjust permissions to correct values.

Site Not Loading

Check key files like index.php.

Changes Not Applying

Refresh File Manager or check ownership.

Related Guides

Upload Files

Manage your website files.

View Guide

Setup FTP

Access files using FTP.

View Guide

Install WordPress

Launch a website.

View Guide
← Back to DirectAdmin Guides