XAMPP is installed in the Applications folder on MAC, whenever I create a new directory for a website and deploy the files I get an error related to permission.
Warning: mkdir(): Permission denied in
Same applies to WordPress when installing a plugin
Installation failed: Could not create directory.
I used the below command:
sudo chown -R root:admin /Applications/XAMPP/
sudo chown -R daemon:daemon /Applications/XAMPP/
None of both has worked.
I’ve set admin group and everyone group to Read & Write privilege this didn’t resolve the issue.
Whenever creating a new directory inside
htdocs by default it doesn’t have admin group added and also everyone group is set to No access I have to manually manage this always.
Your suggestions are highly appreciated