Could not create directory – wordpress plugin installation failure on mac

Solution:1

You need to set permission on plugin folder/directory. Via terminal write this

sudo chmod -R 777 wp-content

Solution:2

Try this in the terminal:

  1. sudo chmod 0775 /Library/WebServer/Documents
  2. sudo dseditgroup -o edit -a username -t user _www
  3. rahulmahato$ sudo dseditgroup -o edit -a rahulmahato -t user _www

Note: Replace username with yours 🙂