Errors on your WordPress site can slow down your work and create serious inconveniences for both you and your users. Luckily, resolving this error is fairly simple. By tweaking just a few settings, you can easily get your WordPress plugin or WordPress theme up and running in no time. The root cause of the problem is the same in each scenario. When you use the native WordPress installer to add a theme or plugin to your site, it has to create a new directory in which to save its files. In general, this is a problem that usually occurs on new WordPress sites. Read this guide to check disk usage in WordPress. This may be due to old backup files not being deleted or it may happen because your hosting plan is too small for your site. Kinsta provides a Disk space add-on in 20 GB increments. More info here.
Diagnosing the “Installation Failed: Could Not Create Directory.” Error in WordPress (2 Methods)
random thoughts and tips
What causes this error: The error notification explains that the installation failed because WordPress was unable to create a directory. This means that you skipped a very important stage during installation. The plugins and themes do not have permission to write on the root directory of the website.
What Causes the “Installation Failed: Could Not Create Directory.” Error in WordPress
Join Stack Overflow to learn, share knowledge, and build your career. Connect and share knowledge within a single location that is structured and easy to search. Installing Plugin: bbPress 2. The user that is running your web server does not have permissions to write to the directory that Wordpress is intending to create the plugin directory in. You should chown the directory in question to the user that is running Wordpress. It is most likely not root. In short, this is a permissions issue. Your touch command is working because you're using it as root, and root has global permissions to write wherever it wants. You can fix this by using the following commands. You should first be in the root folder of Wordpress.
It often occurs when users try to use a new version of WordPress, try to upgrade WordPress plugins, or add and update themes. Why does it happen and how do you fix it? This happens due to an error during installation. The message tells us the installation was not successful due to WordPress being unable to create a new directory. It essentially means that the user might have missed a crucial step during installation. Luckily, there are some things that you can do to fix the issue. You must know that when WordPress creates a new website, your files are stored in folders or directories, which the webserver creates. The error also happens if you exceed the quota limit of your server, or if the directory you are trying to reach is already full.