New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.5 - File Vault vs Apache + Sites Folder


Post Reply New Thread Subscribe

 
Thread Tools
davidsword

 
Member Since: Jan 11, 2008
Posts: 137
davidsword is on a distinguished road
Mac Specs: 13"/2.0Ghz/4GB/80GB/White Macbook

davidsword is offline
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!
QUOTE Thanks
Maul

 
Maul's Avatar
 
Member Since: Dec 10, 2005
Location: G'boro, NC.
Posts: 42
Maul is on a distinguished road
Mac Specs: 15" MacBook Pro

Maul is offline
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?

QUOTE Thanks
ericgfx01

 
Member Since: Oct 02, 2008
Posts: 1
ericgfx01 is on a distinguished road

ericgfx01 is offline
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?
QUOTE Thanks
Jerry Merfeld

 
Member Since: Nov 24, 2008
Location: Portland, OR
Posts: 3
Jerry Merfeld is on a distinguished road
Mac Specs: 2xCore x86 MacBook w/ 13" screen bordered by uplifting messages from fortune cookies.

Jerry Merfeld is offline
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.
QUOTE Thanks
davidsword

 
Member Since: Jan 11, 2008
Posts: 137
davidsword is on a distinguished road
Mac Specs: 13"/2.0Ghz/4GB/80GB/White Macbook

davidsword is offline
Thank you so much Jerry Merfeld! Works perfectly.
QUOTE Thanks
kdoc

 
Member Since: Nov 24, 2008
Posts: 3
kdoc is on a distinguished road

kdoc is offline
Quote:
Originally Posted by Jerry Merfeld View Post
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.
QUOTE Thanks
Jerry Merfeld

 
Member Since: Nov 24, 2008
Location: Portland, OR
Posts: 3
Jerry Merfeld is on a distinguished road
Mac Specs: 2xCore x86 MacBook w/ 13" screen bordered by uplifting messages from fortune cookies.

Jerry Merfeld is offline
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=...,...,...
QUOTE Thanks
kdoc

 
Member Since: Nov 24, 2008
Posts: 3
kdoc is on a distinguished road

kdoc is offline
Thanks Jerry.

Where does the MAC store this info on the filesystem as well pls? Which files?
QUOTE Thanks
Jerry Merfeld

 
Member Since: Nov 24, 2008
Location: Portland, OR
Posts: 3
Jerry Merfeld is on a distinguished road
Mac Specs: 2xCore x86 MacBook w/ 13" screen bordered by uplifting messages from fortune cookies.

Jerry Merfeld is offline
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

http://www.JerryMerfeld.com/

"Doing the best I can when I can" - The person who said it before me.
QUOTE Thanks
kdoc

 
Member Since: Nov 24, 2008
Posts: 3
kdoc is on a distinguished road

kdoc is offline
Thanks again.

K
QUOTE Thanks
rolfen

 
Member Since: Sep 23, 2009
Posts: 2
rolfen is on a distinguished road

rolfen is offline
Quote:
Originally Posted by davidsword View Post
Thank you so much Jerry Merfeld! Works perfectly.
It breaks the multiuser philosophy, and its not good practice, nor is it very safe.
QUOTE Thanks
jsnwest

 
Member Since: Oct 10, 2009
Posts: 1
jsnwest is on a distinguished road

jsnwest is offline
Quote:
Originally Posted by Jerry Merfeld View Post
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 : ^ })
QUOTE Thanks
tweitz

 
Member Since: Nov 19, 2009
Posts: 1
tweitz is on a distinguished road

tweitz is offline
There is a support page on apple.com that addresses this problem as well,

Mac OS X 10.5: Web Sharing - "Forbidden 403" message appears instead of website content
QUOTE Thanks

Post Reply New Thread Subscribe


« problems installing Cinema 4D | Installing old Leopard alternate boot with Snow Leopard »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Folder handled as a file stefano7625 OS X - Operating System 2 06-16-2008 03:38 AM
apache saving folder? verro91 Web Design and Hosting 4 09-21-2007 11:53 PM
I need specific type of backup software benijuana OS X - Apps and Games 5 03-23-2007 12:37 PM
Replacing files within a folder, rather than the entire folder PFerrara OS X - Operating System 5 08-28-2006 10:34 AM
OS X.26 - FTP allows login, but then closes after cwd to folder funky Web Design and Hosting 2 01-27-2005 11:43 PM

All times are GMT -4. The time now is 04:02 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?