{"id":457,"date":"2024-12-10T08:19:37","date_gmt":"2024-12-10T08:19:37","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2024\/12\/10\/10259847-how-to-fix-could-not-create-directory-error-at-hostinger\/"},"modified":"2026-11-06T08:55:26","modified_gmt":"2026-11-06T08:55:26","slug":"10259847-how-to-fix-could-not-create-directory-error-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/10259847-how-to-fix-could-not-create-directory-error-at-hostinger\/","title":{"rendered":"How to fix &#8220;Could Not Create Directory&#8221; error at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">The \u201cInstallation failed: Could not create directory\u201d error typically happens when your WordPress website encounters issues creating a directory for a new plugin or theme, often due to misconfigurations or permission problems. It may happen during different processes, for example:<\/p>\n<ul>\n<li>\n<p class=\"no-margin\">Installing new plugins or themes.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Updating existing plugins or themes.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Uploading media files.<\/p>\n<\/li>\n<\/ul>\n<h2 id=\"h_d304cd1fbb\">Common causes of the \u201cCould not create directory\u201d error<\/h2>\n<ol>\n<li>\n<p class=\"no-margin\">Incorrect file permissions: WordPress may not have the required permissions to create directories or upload files.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Incorrect directory path: The directory path for uploads may be misconfigured in the WordPress settings.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Disk space: The server may have run out of disk space, preventing WordPress from creating files and directories.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">PHP configuration: The PHP settings on your server may be limiting file uploads or directory creation.<\/p>\n<\/li>\n<\/ol>\n<h2 id=\"h_4311bff91e\">How to fix the \u201cCould not create directory\u201d error in WordPress<\/h2>\n<ol>\n<li>\n<p class=\"no-margin\">Verify and fix directory permissions: WordPress needs the correct read\/write\/execute permissions to manage files and directories. Here are the steps on how to fix it:<\/p>\n<ol>\n<li>\n<p class=\"no-margin\">Connect to Your Server via <a data-click-id=\"hgr-post-content-link-ftp\" class=\"intercom-content-link\" href=\"\/support\/4480505-how-to-connect-to-your-hosting-using-ftp-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">FTP<\/a> or File Manager: Use an FTP client (such as FileZilla) or your hosting provider\u2019s file manager to access your website files.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Go to the wp-content folder: Go to your WordPress installation folder and navigate to the wp-content directory.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Set Correct Permissions on wp-content\/uploads: This directory should be writable by WordPress. Set the permissions of the uploads folder to 755 (directories) and 644 (files). To adjust the permissions, right-click the uploads directory, then select <b>Permissions<\/b>:<br \/>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-24677\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_16-42.png\" alt=\"\" width=\"362\" height=\"542\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_16-42.png 362w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-05_16-42-200x300.png 200w\" sizes=\"(max-width: 362px) 100vw, 362px\" \/>\u200b<\/p>\n<p class=\"no-margin\">\u200bNext, set the numeric value to 755 for directories and 644 for files, and click <strong>Update<\/strong>. File Manager changes one file or folder at a time, so use FTP or SSH to give all subdirectories inside the uploads directory the same permissions. You can do this for all the directories where files need to be uploaded.<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" class=\"alignnone size-full wp-image-24732\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-06_11-10.png\" alt=\"\" width=\"474\" height=\"401\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-06_11-10.png 474w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/11\/2026-11-06_11-10-300x254.png 300w\" sizes=\"(max-width: 474px) 100vw, 474px\" \/><\/div>\n<\/li>\n<li>\n<p class=\"no-margin\">Apply permissions recursively: If you are using FTP, you may also need to apply the correct permissions recursively. This will ensure that all files and subdirectories inside wp-content\/uploads inherit the correct permissions.<\/p>\n<p>For more detils on permissions, refer to the following article : <a data-click-id=\"hgr-post-content-link-how-to-set-access-rights-for-files-and-folders\" class=\"intercom-content-link\" href=\"\/support\/1583244-how-to-set-access-rights-for-files-and-folders-in-hostinger\/\" target=\"_blank\" rel=\"noopener\">How to set access rights for files and folders<\/a>.<br \/>\n\u200b<\/li>\n<\/ol>\n<\/li>\n<li>\n<p class=\"no-margin\">Check the uploads path in WordPress settings: Sometimes, WordPress may not be using the correct directory path for uploads, causing it to fail when creating new directories. Here are the steps to check and update the path:<\/p>\n<ol>\n<li>\n<p class=\"no-margin\">Log into your <a data-click-id=\"hgr-post-content-link-wordpress-dashboard\" class=\"intercom-content-link\" href=\"\/tutorials\/how-to-login-to-wordpress-dashboard\/\" target=\"_blank\" rel=\"noopener\">WordPress Dashboard<\/a>.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Go to Settings \u2192 Media.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Check the Upload Path: Make sure the \u201cStore uploads in this folder\u201d option is set to <b>wp-content\/uploads<\/b> (or a custom folder if necessary). Ensure that the path you enter is correct and that the folder is writable. If the upload path is incorrect, correct it and save the changes.<br \/>\n\u200bAlternatively, you can also check your upload path from your database.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Go to <a data-click-id=\"hgr-post-content-link-phpmyadmin\" class=\"intercom-content-link\" href=\"\/support\/1583545-how-to-access-phpmyadmin-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">phpMyAdmin<\/a>.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Look for <b>wp_options<\/b> table (wp_ is the default prefix, your WordPress prefix may be different based on your installation).<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Find <b>upload_path<\/b> and change its value to the correct path:<br \/>\n\u200b<\/p>\n<div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/55\/2024\/12\/c73fee85-9f96-4605-b759-43cb6d07525a.jpg\/public\" alt=\"Highlighted upload_path entry in a directory list on Hostinger file manager\" width=\"350\" data-media-id=\"2225\" \/><\/div>\n<p class=\"no-margin\">\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p class=\"no-margin\">Increase PHP Limits: Sometimes, PHP settings on your server may restrict file uploads and directory creation. You can increase the PHP limits to allow WordPress to function properly. You can also adjust the limits by adding the following lines to your .htaccess file in the root directory:<br \/>\n\u200b<\/p>\n<pre><code>php_value upload_max_filesize 64M\r\nphp_value post_max_size 64M\r\nphp_value max_execution_time 300<\/code><\/pre>\n<p class=\"no-margin\">Click <strong>Deploy<\/strong> and test your uploads again.<br \/>\n\u200b<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Check disk space on your server<b>:<\/b> If your server is out of disk space, WordPress may not be able to create directories or upload files. To make sure of it, you need to check your server\u2019s disk space usage. If you\u2019re nearing the disk quota, you\u2019ll need to free up space. You can do it by deleting old backup, logs, or any other unnecessary files.<\/p>\n<\/li>\n<\/ol>\n<p class=\"no-margin\">The \u201cCould Not Create Directory\u201d error in WordPress can be caused by several factors, including incorrect file permissions, misconfigured paths, and PHP limitations. By following the steps mentioned above, you should be able to identify and resolve the issue.<\/p>\n<p class=\"no-margin\">Make sure to:<\/p>\n<ul>\n<li>\n<p class=\"no-margin\">Correct the file permissions for the uploads folder.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Verify the correct upload path in WordPress settings.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Increase PHP limits if necessary.<\/p>\n<\/li>\n<li>\n<p class=\"no-margin\">Ensure that your server has enough disk space.<\/p>\n<\/li>\n<\/ul>\n<p>For other website errors, see <a data-click-id=\"hgr-post-content-link-how-to-identify-and-fix-website-errors-at-hostinger\" href=\"https:\/\/www.hostinger.com\/support\/4152553-how-to-identify-and-fix-website-errors-at-hostinger\/\">How to identify and fix website errors at Hostinger<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fix the \u201cCould not create directory\u201d error in WordPress at Hostinger by correcting permissions, the upload path, PHP limits, and disk space.<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","include_on_kodee":true,"footnotes":""},"categories":[179],"tags":[],"class_list":["post-457","post","type-post","status-publish","format-standard","hentry","category-wordpress-management"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/10259847-how-to-fix-could-not-create-directory-error-at-hostinger","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/457","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=457"}],"version-history":[{"count":7,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/457\/revisions"}],"predecessor-version":[{"id":24810,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/457\/revisions\/24810"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=457"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=457"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=457"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}