“Permission denied” and files that won’t save or upload

Fix uploads and saves failing with permission errors in WordPress, apps and FTP, without resorting to unsafe 777 permissions.

Guide2 min readLast updated
On this page
  1. Does this match what you’re seeing?
  2. 1. Is the account full?
  3. 2. Folder permissions
  4. 3. File ownership
  5. 4. FTP account limits
  6. 5. Don’t use 777
  7. 6. WordPress: “Unable to create directory”

Does this match what you’re seeing?

  • ‘Failed to write file to disk’ or ‘Permission denied’ in logs
  • WordPress can’t create a folder in uploads
  • FTP says 553 could not create file

1. Is the account full?

A full disk produces write failures that look like permission problems. Check usage on the DirectAdmin dashboard. What’s using my disk space? How to free it up

2. Folder permissions

The folder being written to needs 755. Check the folder and its parents, for example wp-content and wp-content/uploads. File permissions explained (644, 755 and why never 777)

3. File ownership

Files created by another process, or restored from an archive, can have ownership the web server can’t write to. Signs: permissions look correct but writes still fail on specific files.

  • Delete and re-upload the affected files through the File Manager or SFTP with your own login.
  • If files can’t be deleted or changed at all, ask through the contact form (choose “Something only Traxio can do”) for file ownership in your account to be checked.

4. FTP account limits

553 Could not create file from an additional FTP account can mean the file is outside the account’s allowed folder. How to create an FTP account

5. Don’t use 777

Setting folders to 777 “fixes” the symptom by letting anything write there, including malicious code. Correct permissions and ownership instead.

6. WordPress: “Unable to create directory”

Check Settings → Media doesn’t contain an old upload path from a previous host. Clear it to use the default.

Spotted something out of date or unclear? Tell us and we’ll fix it.

Keep going