I've set up a web server on OS X Mountain Lion (not the server version) what is working perfectly. The problem I am having is that if I edit a PHP file in the server document directory from another machine on the network then it's permissions are altered such that Apache can no longer read the file and I have to go back to the server and alter the files permissions. I've spent a couple of days trying to fix this but have so far failed.
I'm using PHP Storm on the Windows client machine and have set up ACL's on the server. I believe the problem may be that - when I save the file in PHP Storm - it creates a temporary file then deletes the old one and renames the temp file.
Can anyone help as this is getting frustrating.