WordPress Error Installation failed: Could not create directory

In this article, we going to see how to solve the WordPress error installation failed could not create directory. This problem mostly occurs on Dedicated or Cloud servers due to the folder and file permissions we can create directory. Based on the permissions issue we can’t install or upload Themes, Plugins, and Images. To solve the installation failed issue, you need to follow below two steps.
Step 1: Ownership Permission For WordPress Directory
Once you created your website directory make sure that your folder having the ownership permission, for that use the below command to do.
1 |
chown -R www-data:www-data wordpress-directory |
Note: You need to replace wordpress-directory with created directory name.
Step 2: Directory and File Permissions For WordPress site
Now add the below permission commands for your folders and files, which allow you to create and use the directory from the WordPress admin Dashboard.
1 2 |
sudo find /var/www/html/wordpress-directory -type d -exec chmod 755 {} \; sudo find /var/www/html/wordpress-directory -type f -exec chmod 644 {} \; |
Note: You need to replace the file path of your directory path.
Conclusion:
I hope this article will help you to solve the could not create directory problem on your WordPress website. If you need any clarification let me know in the comment box and if you loved this article share it with your friends.
File PermissionsInstallation failedwordpress
Mraj
Creative Designer & Developer specialist by the spirit and a loving blogger by thoughts. If you have any questions let me drop an email with the article name to the following email id: [email protected]