GeekyHow is a media website. We provide you with the latest PC software, android games, PC games, Playstaion games, how to android, download android apps, latest PC tricks and tips, apps reviews, software reviews, games reviews and much more.

Installation failed: could not create directory- Fix in AWS EC2 under 30 sec

0 3,831

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 directory.

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

  1. Log in to the server.
  2. Then, put this link /var/www/HTML to FileZilla address bar and hit enter.
  3. Now, Press control + select together wp-admin,wp-content and wp-includes.
  4. Now, right-click on it, go to file permission, then type 755 and click apply.
  5. Wait, until the process to be successful.
  6. 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/
Putty code for change permission, Directory permission change, installation failed:unable to create directory permission

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.

  1. Log in to your Cpanel.
  2. Open the file manager, then go to public_html.
  3. Select “cgi-bin, wp-admin, wp-content,wp-includes”, then right-click, you will find change permission.
  4. Here, you put “755” and click on Change permission and save the settings.
  5. Now, rest of your files give permission no ‘644’
Permission change file system in Cpanel

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,

  1. How to be a successful Blogger.

Leave A Reply