I'm trying to get LAMP working on OSx Lion and am having a little trouble.
Have Apache, MySQL, and PHP set up and working just fine. Have turned on "Website" under sharing in Settings. Removed the original ~/user_name/Sites folder and created a symbolic link of Sites to a directory withint ~/user_name.
Now when I try to run http://localhost/~user_name I get:
Forbidden You don't have permission to access /~user_name on this
server.
Where and how do I change these permissions?
Best Answer
When accessing websites on your "localhost", there are several permissions which are required. The localhost content may be in your Sites directory, in which case, these commands may help prevent any "Forbidden" messages.
Ensure the Users directory allows read directory access:
Ensure the username directory allows read directory access:
Ensure your Sites directory allows read directory access:
Every subdirectory of Sites needs read access:
Every file in Sites and subdirectories needs read access:
Apache uses the _www group so, to give Apache full access to everything in the Sites directory, set the extended attributes with this: