WordPress "Installation Failed: Could Not Create Directory": How to Fix It (2026)

Installation Failed: Could Not Create Directory - WordPress error fix

You try to install a plugin or theme and WordPress answers: Installation failed: Could not create directory. WordPress could not write the new folder on your server. The reason is almost always disk space, folder permissions, or a leftover folder from an earlier try.

The Short Version

  • WordPress needs permission to create folders inside wp-content. If it cannot, the install stops.
  • Check free disk space or quota in your hosting panel first.
  • Then check folder permissions. WordPress recommends 755 for folders and 644 for files.
  • Delete half-installed folders and the leftover wp-content/upgrade files, then try again, or install by FTP.

Why This Error Happens

  • No free space. Your hosting plan is full or you hit a file quota.
  • Wrong permissions. The wp-content, plugins, themes or upgrade folder cannot be written to.
  • Wrong owner. After a migration, files can belong to a different server user than the one PHP runs as.
  • Leftover folder. A failed earlier install left a folder with the same name.

Step 1: Check Disk Space

Open your hosting panel and look at disk usage and file count limits. If the account is full, delete old backups and unused files, or upgrade the plan. Then try the install again.

Step 2: Check Folder Permissions

In File Manager or FTP, look at the permissions of wp-content, wp-content/plugins, wp-content/themes and wp-content/uploads. Folders should normally be 755 and files 644. Do not set 777. It makes files writable by everyone and is a security risk.

Step 3: Remove Leftovers

  1. Open wp-content/plugins or wp-content/themes and delete any folder from the failed install.
  2. Open wp-content/upgrade and delete the files inside it.
  3. Try the install again.

Step 4: Ask Your Host About File Ownership

If permissions look right and it still fails, the owner of the folders may be wrong. This often happens after moving a site. Ask your host to check that the files belong to the same user that runs PHP.

Step 5: Install by FTP

Unzip the plugin or theme on your computer and upload the folder to wp-content/plugins or wp-content/themes. Then activate it in the dashboard. If the upload itself fails, read our upload limit guide. If a core update fails the same way, see our update failed guide.

Verified Facts and Sources

Checked in December 2026. The WordPress developer documentation on file permissions recommends 755 (or 750) for directories and 644 (or 640) for files, and warns against making files writable by everyone. WordPress uses the wp-content/upgrade folder as a working area during updates and installs.

Frequently Asked Questions

Is it safe to set permissions to 777?

No. 777 lets anyone write to the files. Use 755 for folders and 644 for files unless your host tells you otherwise.

Why does this error happen after I moved my site?

File ownership often changes during a move. WordPress then cannot create folders. Ask your host to fix the owner of the files.

Can I delete the wp-content/upgrade folder contents?

Yes, the files inside are temporary leftovers from updates and installs. Keep the folder itself.

What if I cannot fix permissions?

Install the plugin or theme by FTP, or ask your host to correct the owner and permissions.

Updated December 3, 2026.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *