WordPress File Permissions: Complete Guide

Published April 21, 2026

WordPress File Permissions Guide

File permissions control who can read, write, and execute files on your server. Wrong permissions are both a security risk and a common cause of WordPress errors.

Permission Basics

Permissions are expressed as three-digit numbers (e.g., 755) representing permissions for owner, group, and others. Each digit is a sum: 4 (read) + 2 (write) + 1 (execute).

Recommended WordPress Permissions

LocationPermissionReason
Directories755Owner can write, others can read and traverse
Files644Owner can write, others can only read
wp-config.php600 or 640Contains database credentials — restrict access
.htaccess644Apache needs to read it

How to Set Permissions

Via SSH/terminal:

# Set all directories to 755
find /path/to/wordpress -type d -exec chmod 755 {} \;
# Set all files to 644
find /path/to/wordpress -type f -exec chmod 644 {} \;
# Secure wp-config.php
chmod 600 /path/to/wordpress/wp-config.php

SiteICO's file manager shows and lets you change permissions directly from your dashboard without SSH access.

Permissions That Cause Problems

The uploads/ Directory

The wp-content/uploads/ directory needs 755 so PHP can write uploaded files. Never set it to 777 on a shared hosting environment.