You click “Update” on a pluginSoftware that adds specific features or functionality to a W... More or themeTheme A collection of files that determine a site's design, ... More. WordPress thinks for a moment. Then you see it: “Update failed: Could not create directory.”
On managed WordPress hosting, this error is especially frustrating. Managed hosts are supposed to just work. But when they don’t, you can’t always fix things the usual way, you may not have SSH access, or permission controls might be locked down.
This guide covers what causes this error on managed hosting and how to fix it, with a focus on solutions that work within managed hosting constraints.
Despite the scary wording, this error has a few simple causes :
| Cause | Likelihood on Managed Hosting |
|---|---|
| Out of disk space | HIGH: many plans have strict limits |
| Incorrect file permissions | LOW: managed hosts usually handle this |
| PHP temporary folder missing | MEDIUM: can happen after server changes |
| Filesystem ownership mismatch | LOW: but possible after migrations |
| PluginSoftware that adds specific features or functionality to a W... More conflict | LOW: but possible |
On managed hosting (Kinsta, WP Engine, Cloudways, etc.), disk space is the most common culprit. These hosts enforce strict storage limits, and it’s easy to hit them without realizing .
Before making changes, confirm the issue:
Ideally, you should see “Writable” for all key directories . If you see “Not writable” for plugins or themes, you have a permissions issue. If everything says “Writable” but updates still fail, disk space is likely your problem .
Also check:
Managed hosting plans have strict storage limits. When you exceed them, WordPress can’t write new files .
Kinsta:
WP Engine:
Cloudways:
General method: Most hosts show disk usage in cPanel or their custom dashboardThe dashboard, or admin panel, is the backend interface wher... More.
Pro tip: Some hosts (like Kinsta) include backupA copy of your WordPress site's files and database, saved to... More storage in your plan limit. If you have many backups, they count against your space.
On managed hosting, you usually can’t change permissions yourself. But you can check if they’re correct, then ask support to fix them.
| Type | Permission |
|---|---|
| Folders | 755 |
| Files | 644 |
wp-config.php | 640 or 644 |
.htaccess | 644 or 640 |
/wp-content/plugins folder → File Permissions755, check “Recurse into subdirectories” → “Apply to directories only”themes and uploads foldersFor files, set to 644 (applied to files only).
Contact support. Ask them to:
This is a 5-minute fix for most hosting support teams.
Sometimes PHP’s temporary folder is missing or inaccessible. You can tell WordPress exactly where to put temporary files .
wp-config.php in your WordPress root directory/* That's all, stop editing! Happy publishing. */ :php
define('WP_TEMP_DIR', dirname(__FILE__) . '/wp-content/temp/');
temp folder inside /wp-content/ (if it doesn’t exist)temp folder to 755wp-config.php instead of editing php.iniThis method is often easier on managed hosting because you can’t always access php.ini .
If the error persists, your host may need to configure upload_tmp_dir in the server’s PHP settings . This is another quick request for support.
WordPress usually handles filesystem access automatically. But you can force it to use the direct method, bypassing FTP/SFTP prompts .
Add this to your wp-config.php (before the “stop editing” line):
php
define('FS_METHOD', 'direct');
What this does: Tells WordPress to write files directly using the same user as the web server .
Note: This only works if permissions are already correct. If ownership is wrong, this won’t help, but on managed hosting, ownership is usually correct.
Managed hosting support exists for exactly these situations. Don’t suffer in silence.
“I’m getting ‘Update failed: Could not create directory’ when updating plugins/themes. I’ve checked disk space and it’s not full. Can you check:
- Filesystem ownership (should be web server user)
- PHP temporary directory (
upload_tmp_dir) exists and is writable- No disk quotas or inode limits are blocking writes”
| Host | Response Time | Known Issues |
|---|---|---|
| Kinsta | Excellent | Rarely see this error |
| WP Engine | Excellent | Usually disk space |
| Cloudways | Good | Sometimes permission-related |
| Pressable | Good | Usually disk space |
| Flywheel | Good | Sometimes temp folder |
The “Could not create directory” error is frustrating, but on managed hosting, it’s rarely a complex problem. Check disk space first, it’s the most common culprit and the easiest to fix. If that’s not it, work through permissions and the temporary folder fix.
And remember: You pay for managed hosting support. Use it. A quick chat or ticket can resolve in minutes what might take you hours to diagnose.