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 ?
LVL 1
bleggeeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Daniel HelgenbergerCommented:
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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.