File Vault vs Apache + Sites Folder

Joined
Jan 11, 2008
Messages
137
Reaction score
3
Points
18
Your Mac's Specs
13"/2.0Ghz/4GB/80GB/White Macbook
I enabled filevault on my macbook, and all's been well (minus the fact I just ordered a G-Tech G-Drive because my macbook's 80 HD requires 120GB to backup now.) Except, I do a lot of work with php, and kept all my scripts in /localhost/~davidsword/, but now I'm getting the error

Forbidden
You don't have permission to access /~davidsword/ on this server.


I would just run out of /localhost/ but its not index'ed with spotlight which is a must.

I tried adding some virtual hosts but couldn't get any of them to display anything other than /localhost/..

permission on ~davidsword/sites/ is all r&w.....

Thanks in advance for any help!
 
Joined
Dec 10, 2005
Messages
42
Reaction score
0
Points
6
Location
G'boro, NC.
Your Mac's Specs
15" MacBook Pro
I'm experiencing the same problem on my mac after upgrading from tiger to leopard. On tiger, I was able to access the localhost files in the ~name/Sites/ directory just fine. Now with the new OSX installed, I keep getting the "Forbidden You don't have permission to access..." I don't understand this denied access. How can I not have access with the Admin account? Am I missing something here?
 
Joined
Oct 2, 2008
Messages
1
Reaction score
0
Points
1
Grrr. I found the same problem. I am trying to teach myself php, and am so new, this is frustrating.
I did notice however that files I place into the Library>Webserver>Documents seem to load just fine.
What gives?
 
Joined
Nov 24, 2008
Messages
3
Reaction score
0
Points
1
Location
Portland, OR
Your Mac's Specs
2xCore x86 MacBook w/ 13" screen bordered by uplifting messages from fortune cookies.
Try this...

Modify your httpd.conf so Apache will run as you.

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User yourusername
Group yourusergroup

...I sure hope this helps, it definitely worked for me.
 
OP
D
Joined
Jan 11, 2008
Messages
137
Reaction score
3
Points
18
Your Mac's Specs
13"/2.0Ghz/4GB/80GB/White Macbook
Thank you so much Jerry Merfeld! Works perfectly.
 
Joined
Nov 24, 2008
Messages
8
Reaction score
0
Points
1
Modify your httpd.conf so Apache will run as you.

User yourusername
Group yourusergroup

Hi folks,

newbie question please. In Linux, user and group are stored in /etc/passwd and /etc/group respectively. However, I can't find my name in passwd and can't seem to find my name against any group in 'group'.

Where do I find that info on a MAC pls? (OS X 10.5.5)

I guess I should include the fact that I ask this in this thread, because I also have a filevault userdir and am attempting to get my webserver working.
 
Joined
Nov 24, 2008
Messages
3
Reaction score
0
Points
1
Location
Portland, OR
Your Mac's Specs
2xCore x86 MacBook w/ 13" screen bordered by uplifting messages from fortune cookies.
use id (-- return user identity)

Executing 'id' (without the quotes) from the command prompt will display your user ID, groups, and group IDs.

$ id
uid=501(yourusername) gid=20(yourusergroup) groups=...,...,...
 
Joined
Nov 24, 2008
Messages
8
Reaction score
0
Points
1
Thanks Jerry.

Where does the MAC store this info on the filesystem as well pls? Which files?
 
Joined
Nov 24, 2008
Messages
3
Reaction score
0
Points
1
Location
Portland, OR
Your Mac's Specs
2xCore x86 MacBook w/ 13" screen bordered by uplifting messages from fortune cookies.
NOTE: This information is not related to this thread but since I am a curious individual as well... here it is.

It's in the Directory Services local DB, which is another can of worms.

If you want to modify it, check out the manual pages on the Apple site for more info about the Directory Services Command Line utility (dscl).
Mac OS X Manual Page For dscl(1)

The location of the database? /var/db/dslocal/nodes/Default
 
Joined
Oct 10, 2009
Messages
1
Reaction score
0
Points
1
Modify your httpd.conf so Apache will run as you.

#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/group to run httpd as.
# It is usually good practice to create a dedicated user and group for
# running httpd, as with most system services.
#
User yourusername
Group yourusergroup

...I sure hope this helps, it definitely worked for me.

I'm not sure if the following method is any safer but it worked for me and I haven't altered any system files.

Get Info on your home folder. In the "Ownership and..." pane, click the lock and authenticate if necessary. Give "everyone" "read-only" access. Leave the 'Ignore ownership...' box unchecked.

I have FileVault on. I assume it should work with FV off. Good Luck : ^ })
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top