Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Change File Permissions with FTP Client for WordPress

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Changing file permissions on your WordPress site is often necessary when you need to fix upload errors, make a plugin writable, or secure sensitive files. This guide walks you through the process using any standard FTP client (like FileZilla or Cyberduck), from connecting to your server to setting the correct permission values. You don't need any coding skills—just your FTP login details and a few minutes.

What You'll Need

  • An FTP client (FileZilla is free and widely used, but any client works)
  • Your FTP hostname, username, and password (usually provided by your hosting company)
  • Access to your WordPress installation's file structure (typically in a folder like public_html or www)
  • A basic understanding of which files or folders you need to change permissions for (e.g., wp-content, .htaccess)

Step-by-Step

  1. Connect to your server – Open your FTP client and enter your hostname, username, and password. Use port 21 (or 22 for SFTP) and click Connect/Quickconnect. Wait for the directory listing to load.
  2. Navigate to your WordPress root folder – In the remote (server) panel, go to the folder where WordPress is installed. This is often public_html, htdocs, or a subfolder like mysite.
  3. Locate the file or folder – Find the item you need to change permissions for. Common targets: wp-config.php (should be 400 or 440), .htaccess (usually 644), or the wp-content folder (often 755 for directories, 644 for files).
  4. Right-click the item – In most FTP clients, right-clicking opens a context menu. Look for “File permissions…” or “Permissions…” (in FileZilla it’s “File permissions…”).
  5. Enter the numeric value – A dialog box will appear with checkboxes and a numeric field. Type the three-digit permission value (e.g., 755 for folders, 644 for files). Alternatively, check the boxes: Read (4), Write (2), Execute (1) for Owner, Group, and Public. For 644, check Read+Write for Owner, and Read only for Group and Public.
  6. Apply to subdirectories (if needed) – If you’re changing a folder and want all subfolders and files to inherit the permissions, check the option “Recurse into subdirectories” and choose “Apply to all files and directories” or the appropriate combination. Be cautious—this can affect many files.
  7. Confirm and wait – Click OK. The client will process the change. For large folders, this may take a few seconds. You’ll see the permissions update in the file listing (e.g., rw-r--r-- for 644).
  8. Test your site – After changing permissions, refresh your WordPress site or try the action that was failing (e.g., uploading a plugin). If it works, you’re done. If not, review the next sections.

Common Mistakes

  • Setting everything to 777 – This is a security risk. It allows anyone to read, write, and execute. Only use 777 temporarily for specific folders like wp-content/uploads if absolutely needed, then revert to 755.
  • Changing permissions on the entire WordPress root – This can break your site if you set files to execute. Only change what’s necessary.
  • Forgetting to recurse – If you change a folder’s permissions but not its subfolders, the issue may persist. Always apply recursively when needed.
  • Using incorrect values for files vs. folders – Files should never be 755 (that gives execute permission, which is unnecessary). Folders should generally be 755, not 644, because they need execute to allow directory traversal.
  • Not checking the owner – If your FTP user is not the file owner, changing permissions may not work or may cause ownership issues. Check with your host if unsure.

Tips

  • Use 644 for files and 755 for folders – This is the standard secure setup for most WordPress sites. It allows the owner to write, and everyone else to read/execute.
  • Keep wp-config.php at 400 or 440 – This prevents other users from reading your database credentials. If you need to edit it, temporarily change to 600, then revert.
  • Use SFTP if possible – SFTP (port 22) is more secure than FTP (port 21). Many hosts support it.
  • Backup before changing – If you’re unsure, download a copy of the file or folder first. This way you can restore if something goes wrong.
  • Check your host’s documentation – Some managed hosts (like WP Engine) restrict permission changes; you may need to use their file manager or support.

Troubleshooting

I get “Permission denied” when trying to change permissions.

This usually means your FTP user doesn’t have ownership of the file. Try using your hosting control panel’s file manager (e.g., cPanel) to change permissions, or contact your host to adjust ownership.

I changed permissions, but the problem persists.

First, check that you changed the correct file/folder. For upload issues, ensure wp-content/uploads is writable. Also, clear your browser cache and any caching plugin. If it’s a plugin error, try deactivating plugins via FTP by renaming the plugins folder.

My site shows a white screen after changing permissions.

You likely set permissions too restrictive (e.g., 400 on a folder). Revert to 755 for folders and 644 for files. If you can’t access the site, use your hosting file manager to fix it.

I see “The file is not writable” in WordPress.

This happens when WordPress can’t write to wp-config.php or .htaccess. Temporarily set the file to 666 (or 644 if that doesn’t work), make your changes, then set it back to 644 or 600.

Permissions don’t stick after I change them.

Some hosts override permissions with a cron job. Check your hosting plan—shared hosts may reset permissions. You may need to use a plugin like “Wordfence” to lock permissions, or contact support.

Frequently Asked Questions

What are the ideal permissions for WordPress files and folders?

Directories should be 755, and files should be 644. The wp-config.php file can be 400 or 440 for extra security. Avoid 777 except for temporary debugging.

Can I change permissions using the WordPress admin dashboard?

No, WordPress doesn’t have a built-in file permission editor. You need an FTP client or your hosting file manager.

What does 755 mean in simple terms?

It means the owner can read, write, and execute; the group and others can only read and execute. This is standard for folders.

Is it safe to set wp-content to 777?

No. It’s a security risk. If you need to allow plugin/theme uploads, try 755 first. Only use 777 temporarily and revert immediately.

Why do I get a 403 Forbidden error after changing permissions?

This often means you set a file or folder to 000 or too restrictive. Reset to 644 for files and 755 for folders. Also check your .htaccess permissions.

Do I need to change permissions for every update?

Usually not. If your site is configured correctly, WordPress can update itself. If you get a “need FTP credentials” prompt, you may need to set wp-content to 755 and ensure the owner is correct.