> Every Protuno article: https://protuno.com/blog.md · Site map for AI agents: https://protuno.com/llms.txt

# “Installation Failed: Could Not Create Directory” in WordPress: How to Fix It

- Date: 30 November 2026
- Page: https://protuno.com/blog/wordpress-could-not-create-directory

“Installation failed: Could not create directory” means WordPress tried to create a folder inside wp-content, to install or update a plugin or theme, and the server refused. The usual cause is that the web server user does not own or cannot write to wp-content. A full disk, a wrong temporary folder or an FTP update setting can cause it too.

> **The short version**
> 
> 
> 
> **Most common cause:** wp-content is owned by the wrong user, often after a migration or files uploaded over FTP. Ask your host to reset ownership.
> 
> **Check permissions:** folders 755 or 750, files 644 or 640.
> 
> **Do not set folders to 777.** It is the most common advice for this error, and WordPress’s own guidance says never to.
> 
> **Also check** disk space and any FS_METHOD or WP_TEMP_DIR line in wp-config.php.

> **How we built this guide**
> We did not break a site to reproduce this error. The guide follows WordPress’s documentation on file permissions and wp-config.php, read on 30 November 2026.

![Diagram: WordPress runs as the web server user and tries to create a folder in wp-content; the server refuses because of the wrong owner, permissions, a full disk or a wrong path. Healthy values: folders 755 or 750, files 644 or 640, wp-config.php 440 or 400, never 777](https://protuno.com/blog/media/2026/11/wordpress-could-not-create-directory-cnd-ownership.webp)

*Why the server refuses, and what healthy permissions look like.*

## What “Could Not Create Directory” Means

When you install or update a plugin or theme, WordPress downloads a zip, unpacks it into `wp-content/upgrade/`, then moves it into `wp-content/plugins/` or `wp-content/themes/`. Each step creates folders. WordPress does this as the user the web server runs as. If that user is not allowed to create folders there, you see this error, in one of a few forms:

- “Installation failed: Could not create directory.”
- “Update failed: Could not create directory.”
- “Could not create directory” followed by a path such as `wp-content/upgrade` or `wp-content/plugins/plugin-name`.

The path in the message tells you which folder to look at first.

## How To Fix “Installation Failed: Could Not Create Directory”

### 1. Fix the ownership of wp-content

This is the most common cause, especially right after [a site move](https://protuno.com/blog/clone-wordpress-site) or after uploading files over FTP or SFTP with a different user. The files then belong to your FTP user, while WordPress runs as the web server user, so it cannot write to them.

On most hosting, you cannot change ownership yourself. Ask your host: “Please reset ownership of my WordPress files, including wp-content, to the user PHP runs as.” On your own server, an administrator can do it with `chown`, using the user your web server runs as.

### 2. Check folder and file permissions

WordPress’s guidance is: *“All directories should be 755 or 750. All files should be 644 or 640.”* Check `wp-content`, `wp-content/plugins`, `wp-content/themes` and `wp-content/upgrade` in your host’s file manager. If a folder is set to something stricter, set it to 755.

**Do not set folders to 777.** WordPress’s documentation is explicit: *“No directories should ever be given 777, even upload directories.”* A 777 folder can be written by every user on the server, which turns a small update problem into a security hole. If 755 does not work, the real problem is ownership (step 1), not permissions.

### 3. Check disk space

A full disk or a full file-count (inode) quota stops WordPress creating anything. Your hosting panel shows disk and inode use. Old backups stored inside the site folder, large log files and cache folders are the usual space hogs. Clear what you do not need, or ask your host for more space.

### 4. Check FS_METHOD and WP_TEMP_DIR in wp-config.php

Open wp-config.php and look for these two settings:

- **FS_METHOD** tells WordPress how to write files. WordPress’s documentation says it should only be “direct”, “ssh2”, “ftpext” or “ftpsockets”, and that you should generally only change it if you have update problems. If you change it and it does not help, change it back or remove it. A leftover FTP setting with old credentials or paths after a move is a common cause of this error.
- **WP_TEMP_DIR** sets a custom temporary folder. If it points to a folder that does not exist on this server, for example a path from your old host, WordPress cannot unpack the download. Fix the path or remove the line.

### 5. Install the plugin by hand as a test

To get unblocked while you fix the cause, upload the plugin’s folder over SFTP into `wp-content/plugins/` and activate it from the Plugins screen. This skips WordPress’s own installer. It is a workaround, not a fix: the next update will fail the same way until steps 1 to 4 are sorted.

## Check It Worked

Open *Tools, Site Health, Info* and look at the Filesystem Permissions section. It shows whether WordPress can write to the main folders, such as the WordPress directory, wp-content, the uploads, plugins and themes folders. Then try installing a small plugin again.

## When It Is Not A Folder Problem

- **“Download failed”** means WordPress could not fetch the zip at all: a network or firewall issue, not folder permissions.
- **“The package could not be installed”** usually means the zip itself is not a valid plugin or theme.
- **A 403 Forbidden page** during the install points to a firewall or security rule. See [our 403 guide](https://protuno.com/blog/wordpress-403-forbidden).

## Where A Super Agent Fits

Protuno is Super Agents for WordPress: six AI agents you use from Claude, Claude Code, Codex or Cursor, each working from written playbooks and a Brain for each site. To be plain: Protuno cannot change server ownership or disk quotas, and if WordPress cannot write to wp-content, an automated update will fail in the same place.

Once the cause is fixed, Wren’s [Plugin Safe Update](https://protuno.com/playbooks/plugin-safe-update) helps with what comes next: it takes a full backup, updates plugins one at a time and checks the site after each. On our test site it backed up 1,026 files and a 730 KB database export, updated one plugin and found 3 of 3 key pages passing afterwards. What a job may change depends on the agent’s mode on that site. Read only: no changes run. Approval mode: a run starts only when you press Approve in Protuno. Auto mode: runs start on their own, with no approval. More about [Wren](https://protuno.com/docs/super-agent-wren) and all six [AI agents for WordPress](https://protuno.com/agents).

New to AI agents? Here is [what AI agents for WordPress can do](https://protuno.com/blog/ai-agents-for-wordpress), with real results from a test site.

## Common Questions

### Should I set my folders to 777 to fix it?

No. WordPress’s documentation says no directory should ever be given 777, even upload directories. It lets every user on the server write there. Fix ownership instead, and use 755 for folders.

### Why did this start after I moved hosts?

Moving files often changes who owns them. If the files belong to your FTP user rather than the web server user, WordPress cannot create folders. Ask your new host to reset ownership.

### Can my host fix it?

Usually, yes. Ask them to reset ownership of your WordPress files, including wp-content, to the user PHP runs as, and to check your disk and inode quota.

### Is it a bug in the plugin?

Rarely. The error happens before the plugin’s own code runs, while WordPress is unpacking it, so the cause is almost always the server or wp-config.php.

### How do I check my disk space?

Your hosting panel shows disk and inode use, usually on its main page or under a “Usage” or “Statistics” section. If either is near its limit, clear old backups, logs and caches, or ask for more.

## Related Reading

- [WordPress 403 Forbidden error](https://protuno.com/blog/wordpress-403-forbidden)
- [How to copy or clone a WordPress site](https://protuno.com/blog/clone-wordpress-site)
- [WordPress automatic rollback](https://protuno.com/blog/wordpress-automatic-rollback)
- [WordPress backup verification](https://protuno.com/blog/wordpress-backup-verification)

## Sources

- [WordPress Advanced Administration, Changing file permissions](https://developer.wordpress.org/advanced-administration/server/file-permissions/)
- [WordPress Advanced Administration, Editing wp-config.php](https://developer.wordpress.org/advanced-administration/wordpress/wp-config/)
- [WordPress Documentation, Site Health screen](https://wordpress.org/documentation/article/site-health-screen/)
