Results 1 to 13 of 13
  1. #1
    File Vault vs Apache + Sites Folder

    Member Since
    Jan 11, 2008
    Posts
    137
    Specs:
    13"/2.0Ghz/4GB/80GB/White Macbook
    File Vault vs Apache + Sites Folder
    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!

  2. #2
    File Vault vs Apache + Sites Folder
    Maul's Avatar
    Member Since
    Dec 10, 2005
    Location
    G'boro, NC.
    Posts
    42
    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?

  3. #3
    File Vault vs Apache + Sites Folder

    Member Since
    Oct 02, 2008
    Posts
    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?

  4. #4
    File Vault vs Apache + Sites Folder

    Member Since
    Nov 24, 2008
    Location
    Portland, OR
    Posts
    3
    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.

  5. #5
    File Vault vs Apache + Sites Folder

    Member Since
    Jan 11, 2008
    Posts
    137
    Specs:
    13"/2.0Ghz/4GB/80GB/White Macbook
    Thank you so much Jerry Merfeld! Works perfectly.

  6. #6
    File Vault vs Apache + Sites Folder

    Member Since
    Nov 24, 2008
    Posts
    3
    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.

  7. #7
    File Vault vs Apache + Sites Folder

    Member Since
    Nov 24, 2008
    Location
    Portland, OR
    Posts
    3
    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=...,...,...

  8. #8
    File Vault vs Apache + Sites Folder

    Member Since
    Nov 24, 2008
    Posts
    3
    Thanks Jerry.

    Where does the MAC store this info on the filesystem as well pls? Which files?

  9. #9
    File Vault vs Apache + Sites Folder

    Member Since
    Nov 24, 2008
    Location
    Portland, OR
    Posts
    3
    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
    http://www.JerryMerfeld.com/

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

  10. #10
    File Vault vs Apache + Sites Folder

    Member Since
    Nov 24, 2008
    Posts
    3
    Thanks again.

    K

  11. #11
    File Vault vs Apache + Sites Folder

    Member Since
    Sep 23, 2009
    Posts
    2
    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.

  12. #12
    File Vault vs Apache + Sites Folder

    Member Since
    Oct 10, 2009
    Posts
    1
    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 : ^ })

  13. #13
    File Vault vs Apache + Sites Folder

    Member Since
    Nov 19, 2009
    Posts
    1
    Apple Recommends...
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. What is going on with File Vault 2?
    By Rod Sprague in forum OS X - Operating System
    Replies: 28
    Last Post: 03-20-2015, 02:14 PM
  2. File Vault
    By JasonBourneOSX in forum OS X - Operating System
    Replies: 0
    Last Post: 07-05-2008, 10:54 PM
  3. What does file vault actually do?
    By StevenH in forum OS X - Operating System
    Replies: 3
    Last Post: 06-23-2007, 08:00 AM
  4. File Vault
    By Shark Trager in forum OS X - Operating System
    Replies: 2
    Last Post: 01-25-2007, 03:23 PM
  5. Change Apache dir from Sites
    By npartist in forum Web Design and Hosting
    Replies: 3
    Last Post: 02-25-2005, 01:13 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •