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

Friday, February 18, 2022

[FIXED] How to configure Mac MAMP so I don't have to 777 folders

 February 18, 2022     apache, localhost, macos, mamp, web     No comments   

Issue

At the moment I'm working with a git repo, locally so I don't to change any permissions before I push the files.

I'm using MAMP on OSX 10.6.8. I'm sure there must be something that I'm doing wrong. I would like the web pages to be able to write to folders while maintaining 755 permissions on the folders.

NB: MAMP is installed in Applications, but I have the root directory in a folder on my user folder.


Solution

What is user of process running Apache? You must change user or group to apache process and You will have access to files and apache process to.

Example:

$ ls -ld incomming
drwxrwxr-x 42 john apache 4096 May 20 07:33 incomming

This folder onwner is John, and his have full write permmissions. Also this folder is writable by group apache, which is supposed to be apache process group.



Answered By - john
  • 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