Joomla 'Could not create directory' / Failed to Move File: Fix
Symptoms: Extension install fails with 'Could not create directory' · 'Warning: Failed to move file!' · Often right after migrating to a new server/host
Mostly verified. Researched 2026-06-01 (Joomlashack, itoctopus, forum). ✅ Verified the Joomla 5.4.6 wording and temp path locally (see version note).
When installing an extension fails, you’ll often see a pair of errors like “Could not create directory” together with “Warning: Failed to move file!”. The usual culprit is Joomla’s temp folder — either it’s missing/unwritable, or the configured path is wrong.
Version note. Older guides quote the legacy string
JFolder::create: Could not create directory(Joomla 3 and earlier). Joomla 4/5/6 use the namespaced filesystem class and the message is justCould not create directory. Path: …— confirmed in our Joomla 5.4.6 install (libraries/vendor/joomla/filesystem).
Most common cause: the Temp folder
Joomla extracts uploaded packages into a temporary folder before installing. If that folder is missing, unwritable, or pointing at the wrong path (very common after migrating to a new server), the install fails.
Fix
- Go to System → Global Configuration → Server → Path to Temp Folder.
- Make sure it points at a folder that actually exists on this server and is
writable. On our test install the value is the site’s own
tmp/directory (mirrored by$tmp_pathinconfiguration.php, e.g./var/www/html/tmp). - If you just migrated, the old absolute path almost certainly no longer matches — correct it to the new server’s path.
- Ensure the temp (and
images/,media/) folders are writable by the web server user. Use your host’s file manager or FTP to fix permissions; the exact numeric value depends on your hosting (don’t blindlychmod 777).
Related searches
joomla could not create directory install · joomla warning failed to move file ·
joomla path to temp folder after migration · joomla jfolder::create could not create directory