“installation failed: could not create directory” is a very critical error while we try to update or installing a plugin or theme. Moreover, media is neither updating nor installing through WordPress, Cpanel, and Filezilla. It is a very serious issue if you are unable to fix this, and you start thinking that you should leave the hosting. If you have encountered this problem then, read this post completely because we have covered from head to toe to fix installation failed: could not create
Table of Contents
Why installation failed: could not create directory?
This error is because you have not properly given permission to your files to read, write and execute. There are various types of code you have properly add to your file system, so as to it works smoothly. First of all, you should understand the code meaning and how to set permission properly.
Fix installation failed: could not create directory in FTP Filezilla
If you are using FTP Filezilla, then you can fix it using some codes. Because by default the file permission is not set on your server, so you have to deal with this problem. As a blogger you know, how to login to your server using FileZilla. If you don’t know then try a search on google for “How to login to the server using FileZilla”. Let’s dig into this
- Log in to the server.
- Then, put this link /var/www/HTML to FileZilla address bar and hit enter.
- Now, Press control + select together wp-admin,wp-content and wp-includes.
- Now, right-click on it, go to file permission, then type 755 and click apply.
- Wait, until the process to be successful.
- Now, select rest files individually and set permission 644.
Fix installation failed: could not create directory using Putty in AWS EC2
If you are using AWS EC2, then by default the permission is not set. So, you have to set permission manually otherwise it will not work and whenever you try to update or install a plugin it says like this. So, follow the instruction carefully.
One of the best shortcut ways to fix installation failed: could not create directory issue in AWS EC2, Log in to your server using Putty and run the command
sudo chown -Rf www-data.www-data /var/www/html/

How to directory permission change in Cpanel
This issue is rare in Cpanel, but, there could be improperly setting in Cpanel. So, what to do? However, if you are getting this error in Cpanel then, follow this step so as to you can fix.
- Log in to your Cpanel.
- Open the file manager, then go to public_html.
- Select “cgi-bin, wp-admin, wp-content,wp-includes”, then right-click, you will find change permission.
- Here, you put “755” and click on Change permission and save the settings.
- Now, rest of your files give permission no ‘644’

Conclusion:
Hope, after following all this instruction you have successfully fixed this issue’. Let us know which process has worked for you. If you know any other way to fix the issue let us know.
Also read,