Bug Summary
Either by installing a new site or migrating a site using WP Migrate I am unable to install or update any plugins. Every time I try to do so I get the error “Installation failed: Could not create directory” I have made sure that I give the app “full disk access” and I have made sure the folders permission are allowed for Read/Write.
Both the new blank wordpress and the migrated ones all are on the local hard drive and not external.
Steps to reproduce
Not sure how it could reproduced.
Environment Info
Mac M1
-
What Operating System are you using?
Somoma 14.5
-
What versions of site software (Nginx, Apache, PHP, MySQL) is used?
nginx - PHP 7.4 - MySQL 8.0.16
-
What version of Local is installed?
Version 9.0.3+6684
Supporting info
Local Log:
local-lightning-verbose.log (65.6 KB)
local-lightning.log (14.1 KB)
Screenshot:
Hi @naldekhel!
Here are some other things you could check to help resolve this:
-
Ensure that the directories and files within your WordPress installation have the correct permissions. Typically, directories should have permissions set to 755, and files should have permissions set to 644.
-
Make sure that the files and directories are owned by the correct user. The files should be owned by the user running the web server and may need to use the chown command to change ownership.
-
Sometimes, the parent directory of your WordPress installation may have restrictive permissions, preventing WordPress from creating new directories. Ensure that the parent directory has the appropriate permissions for WordPress to create directories within it.
-
Verify that there is enough disk space available on your server. If the disk is full, WordPress won’t be able to create new directories or files.
-
Are you running other developer applications simultaneously? That could also cause similar issues. Apps like MAMP, XAMPP, or Docker for example.
-
For sites you are migrating/importing in do they have any security plugins installed already? Those may need to be deactivated first if they are acting as a blocker.