New Feature Announcement: Master Your Email Delivery with the Mail Delivery Center

Resolving the "Unable to Create Directory" Error in WordPress

In WordPress, the "Unable to create directory" error is a common issue that can occur when you're trying to upload images, update themes or plugins, or install WordPress. This error is typically caused by incorrect file permissions, an incorrect file path, or a misconfigured hosting environment. This guide will walk you through the steps to resolve this error.

Check and Correct File Permissions

Incorrect file permissions can prevent WordPress from creating directories and writing files. Here's how to check and correct file permissions:

  1. Connect to your website using an FTP client or through the File Manager in cPanel.
  2. Navigate to the /wp-content/ directory.
  3. Right-click on the /uploads/ directory and select 'File Permissions'.
  4. Set the numeric value to 755 or 744.
  5. Check the box that says 'Recurse into subdirectories' and then select 'Apply to directories only'.
  6. Click 'OK' to apply the changes.
  7. Repeat the process for all files in the /uploads/ directory, but this time set the numeric value to 644 or 640, and select 'Apply to files only'.

Verify the Media Settings

An incorrect file path in your WordPress settings can also cause this error. To check this:

  1. Log in to your WordPress admin dashboard.
  2. Navigate to Settings > Media.
  3. In the 'Uploading Files' section, check the 'Store uploads in this folder' option. The default should be 'wp-content/uploads'. If it's different, change it back to the default.
  4. Click 'Save Changes'.
  • 254 Users Found This Useful
Was this answer helpful?

Related Articles

 Connect to your server via SSH

SSH allows secure file transfer and remote logins over the internet. Your connection via SSH is...

 How to force your site to use SSL (HTTPS) using

First of all, you will need to install an SSL certificate to your siteOnce your certificate is...

 How do I change PHP versions, or change my PHP settings / config?

The process of setting your PHP version and the 'variables' (such as memory_limit values) differs...

 How do I install a free SSL via cPanel?

Installing an SSL certificate in cPanel is easy! Best of all, it's free with WebGee!Important:...

 How to send emails in WordPress using the WP SMTP Mail plugin

Instead of using the default PHP mail() function, you can send emails using our SMTP services via...

Powered by WHMCompleteSolution