Home / Questions / Why does WordPress say could not create directory?

Why does WordPress say could not create directory?

This error means WordPress cannot write to a folder on the server. Wrong folder permissions, an owner mismatch or a host that limits writes cause it.

WordPress must write to its folders to install plugins, save uploads and run updates. If it cannot write, it asks for FTP details, or it fails with “could not create directory”.

Fix the permissions

  1. Set folders to 755 and files to 644.
  2. Check that the wp-content folder and its subfolders are owned by the web user, not root.
  3. Ask your host to correct the owner if you cannot change it yourself.

Ready to act on this?

Get a written review of your site, or send us your question and we will reply within 24 hours.

Set the file method

If the server cannot write at all, add define( 'FS_METHOD', 'direct' ); to wp-config.php. Use this only on a server you trust, and only when the folder permissions are correct.

If the error stays, contact us with the exact message.

Related services

Not sure where your site stands?

Send us the details and we will reply within 24 hours with a clear next step.