installation failed: could not create directory.

How to “installation failed: could not create directory.” in wordpress

by Expert of Tech

Firstly, The “Installation failed: Could not create directory” error is a comment error for WordPress users. In this paragraph, we will learn how we can solve it.

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.

The user running your web server does not have permission to write to the directory that WordPress intends to create the plugin directory in. It would help if you chose the directory in question for the user that is running WordPress. It is most likely not root.

Solution For Installation Failed: Could Not Create Directory In Cpanel

The consent for envelope utilization depends on the rights that each client has. Inside the internet facilitating server, each server will have the authorization to examine, compose and execute. These will depend on the authorization levels based on client permissions.  

For this option to work for you, you may require cPanel access and web association. Here are the steps that you just ought to take after.

  • Login to your cPanel account.
  • Once logged in, look for “file manager” and open the primary look option.
  • To see records of your site, open “public.html.” Select all records beneath the root registry, right-click, and open “file permissions.” Under the “permissions” button at the beat of the page, tap on the “change permissions” option.
  • Then, an exchange box will open. Beneath the numeric esteem field, enter the number “755”. Another, check the “Recurse into subdirectories.” checkbox and select the “Apply to catalogs only.” option. 
  • Tap on Alright and hold up for the FTP client to wrap up the method. It might take a little time.
  • Under the “permissions” button at the top of the page, click on the “change permissions” option.
  • Then, a dialog box will open. Under the numeric value field, enter the number “755”.
  • Next, check the “Recurse into subdirectories.” checkbox and select the “Apply to directories only.” option. Click on OK and wait for the FTP client to finish the process. It might take some time.

In conclusion, That’s all about it. But, if you face any difficulties, feel free to contact one of our experts or email me. I will respond ASAP. To learn more about WordPress speed optimization, click here.