PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, February 17, 2022

[FIXED] Permissions for local development with git and MAMP

 February 17, 2022     git, localhost, mamp, permissions, wordpress     No comments   

Issue

I'm setting up a new machine on a clean account. I'm developing locally on a Mac (OSX 10.8.2) with MAMP Pro and I use git for version control. I'm having a permissions problem...

MAMP Pro allows you to set permission to the host directory using the following dialog: enter image description here

When I set the owner to myself (ESL) and the group to "Admin" git works happily, but Wordpress updates on my local machine aren't able to run normally (I get prompted for ftp credentials).

When I set the owner and group to "www", Wordpress updates smoothly, but git throws "Permission denied" errors such as:

ESL$ git checkout master
fatal: Unable to create '/Applications/MAMP/htdocs/streetofwalls/.git/index.lock': Permission denied

I'm stuck because I need Wordpress to run normally as well as git. Any ideas why I'm having this problem and/or how to fix it?


Solution

Allow everybody to write there. It’s just local dev machine, right?



Answered By - Chronial
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing