Using Localhost on MAC OSX ... CHOWN & CHMOD questions

Hi All -
I am setting up localhost on OSX 10.8, without using AMP, MAMPP or other outside software.
The local Mac login name is Bruce.
I can see the file ownership & permissions using Terminal, they are "-rwx r-x r-x  Bruce"
I understand how Permissions work, and "Sorta" understand Ownership. Well, untill now, at least I THOUGHT I did ;-)

Question #1 REGARDING LOCAL ACCESS: When opening Firefox and going to Localhost, I get errors saying "Bruce" doesn't have access to files. I also read somethign MAC-Specific about "Adding a hidden -www (or _www) User that solves this problem.  

Question #2 REGARDING SERVER ACCESS: Same question ... When I have everything working and upload the files and DB to a Server, what CHOWN Ownership & CHMOD Permissions do I need ?
Who is Participating?
Daniel HelgenbergerConnect With a Mentor Commented:
I suspect you stared httpd in under your user account. When httpd tries to access the local www root, your user has no permission for that.

It needs to run as root normally.
Use this guide to start httpd as root via sudo.

On the file system, make all files in the www root world readable. You can do this this way:
chmod -R 755 /Library/WebServer/Documents/

Open in new window

If you want a more powerful system, do use MAMPP
bleggeeAuthor Commented:
Thanks. Just for clarification, there is a package called "MAMP" (one 'P') and one called "XAMPP" two 'P's). I used MAMP ... MAMP worked way better, and way easier, thanks!

- B
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.