Hello and welcome to our community! Is this your first visit?
Register

Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Screwed up Apache

  1. #1
    jino
    Guest jino's Avatar

    Default Screwed up Apache

    When I went to got my laptop fixed at the AppleCenter, their solution was a reinstall of the system software. Everything's okay now, except for the fact that I can't access my Web shared Sites folder anymore. Whenever I try to access http://localhost/~jino/, I get a Forbidden error, You don't have permission to access /~jino/ on this server.

    How can I fix this?

  2. # ADS
    Google Adsense




     

  3. #2
    jbd
    jbd is offline
    Mac Lover jbd's Avatar
    Join Date
    Mar 2005
    Age
    42
    Posts
    149

    Default

    First bet for me would be to load up disk utility, select your drive and click "repair disk permissions".

  4. #3
    jino
    Guest jino's Avatar

    Default

    Still doesn't work

  5. #4
    jbd
    jbd is offline
    Mac Lover jbd's Avatar
    Join Date
    Mar 2005
    Age
    42
    Posts
    149

    Default

    2 things you might want to check... open up terminal and see who the owner is of the Sites directory is. Also you may want to check /var/log/httpd/access.log and /var/log/httpd/error.log to see the specific errors involved.

  6. #5
    jino
    Guest jino's Avatar

    Default

    From the Get Info window, the Sites folder is owned by me, and belongs to my group. Permissions are: owner can read and write, group can read only, and world can read only. The error log only shows "Directory index forbidden by rule: /Users/jino/Sites/"


  7. #6
    Mac Addict freelancer's Avatar
    Join Date
    Apr 2004
    Location
    Metro Manila
    Age
    37
    Posts
    1,756

    Default

    OT: Here's a really screwed up Apache: http://web.bitnet.net/rabies/apache.mpeg

    Sorry I couldn't resist. Thank you to the resourceful Vic Icasas for this clip.

  8. #7
    Mac Freak Carlo's Avatar
    Join Date
    Apr 2004
    Posts
    1,264

    Default

    Originally posted by freelancer
    OT: Here's a really screwed up Apache: http://web.bitnet.net/rabies/apache.mpeg

    Sorry I couldn't resist. Thank you to the resourceful Vic Icasas for this clip.
    Mwahahahahahah@Apache.
    Sorry about our OT interruption. Now back to our regular program..
    Apache-pache-pache-boy....
    Attached Images Attached Images

  9. #8
    Mac Lover mikeygar's Avatar
    Join Date
    Jun 2004
    Posts
    228

    Default

    run terminal do an 'su' and take ownership of the folder. will only be possible if you are in terminal as the root user though. The following command after putting in your root password is 'chown' for change ownership. You will have to change the attributes of the folder you want to access.

    Linux boys, can you help him out? Too sleepy to look for the command but this should point you in the right direction.

  10. #9
    jbd
    jbd is offline
    Mac Lover jbd's Avatar
    Join Date
    Mar 2005
    Age
    42
    Posts
    149

    Default

    Originally posted by jino
    From the Get Info window, the Sites folder is owned by me, and belongs to my group. Permissions are: owner can read and write, group can read only, and world can read only. The error log only shows "Directory index forbidden by rule: /Users/jino/Sites/"

    Ok.. I think I know what is going on with your system. The above is a virtual directory error from apache. I was able to simulate it on my test machine and got the following error on my apache error.log:

    [Fri Apr 8 07:22:26 2005] [error] [client 192.168.0.53] Directory index forbidden by rule: /Users/jbd/Sites/

    First, go to your sharing options in the preference panel and turn off personal web sharing. Open up a terminal and change to the directory /etc/httpd/users and verify that there is a file called "jino.conf". If there is no file there by that name you will have to create it, if there is one, you will have to make sure that it looks similar to below:

    Code:
    <Directory "/Users/jino/Sites/">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    Once you have made the changes or made the file (i'm assuming heavily this is the reason you are getting the error), save the file and restart the personal web sharing. That should do it for you.

  11. #10
    jino
    Guest jino's Avatar

    Default

    It's working again! Thank you very much.

  12.   



 
Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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