Women in Technology

Hear us Roar



Article:
  Apache Web-Serving with Mac OS X: Part 1
Subject:   Changed the index.html, now getting "forbidden" on both IP's!!
Date:   2002-01-28 11:18:44
From:   tatlar
Hi there - I liked the clear tutorial, but I have had no success viewing my new "index.html" pages. I could see the default ones just fine, but when I made my own ones, I just got the:


Forbidden
You don't have permission to access /index.html on this server.


On both the "127.0.0.1/" IP and my own IP.


Ideas?


Also, using the Terminal window, I don't get a prompt - just the welcome message. What am I doing wrong???


Cheers,


Tatlar

Full Threads Newest First

Showing messages 1 through 6 of 6.

  • Morbus Iff photo Changed the index.html, now getting "forbidden" on both IP's!!
    2002-01-28 18:03:59  Morbus Iff | O'Reilly Author [View]

    Not really that much of a clue, actually. You only changed the index.html files, located in /Library/WebServers/Documents/? You didn't change anything else?

    What do the last couple of lines in your error log say? To get that info, do the following on a command line:

    tail -f /var/log/httpd/error_log
    • Changed the index.html, now getting "forbidden" on both IP's!!
      2002-01-30 13:54:38  tatlar [View]

      Thanks for the help. The error log shows the following:

      [Tue Jan 29 08:09:38 2002] [notice] Apache/1.3.20 (Darwin) configured -- resuming normal operations
      statfs failed because: No such file or directory
      [Tue Jan 29 12:10:29 2002] [error] [client 24.132.68.122] File does not exist: /Library/WebServer/Documents/scripts/.%2e/.%2e/winnt/system32/cmd.exe
      [Tue Jan 29 15:15:04 2002] [notice] caught SIGTERM, shutting down
      Processing config directory: /private/etc/httpd/users
      Processing config file: /private/etc/httpd/users/donut.conf
      Processing config file: /private/etc/httpd/users/test.conf
      [Wed Jan 30 13:48:14 2002] [notice] Apache/1.3.20 (Darwin) configured -- resuming normal operations
      statfs failed because: No such file or directory
      [Wed Jan 30 13:48:30 2002] [error] [client 127.0.0.1] (13)Permission denied: file permissions deny server access: /Users/donut/Sites/index.html
      statfs failed because: No such file or directory
      [Wed Jan 30 13:50:17 2002] [error] [client 127.0.0.1] (13)Permission denied: file permissions deny server access: /Users/donut/Sites/index.html
      [Wed Jan 30 13:50:22 2002] [error] [client 132.239.153.80] (13)Permission denied: file permissions deny server access: /Library/WebServer/Documents/index.html

      I have checked, and there is definitely a index.html file in the Site folder of my Users area.

      Any ideas?

      Cheers,

      Tatlar
      • Okay, figured it out....
        2002-01-30 16:15:13  tatlar [View]

        Okay, I think I messed up - I replaced ALL the default files with my newwebsite - I guess this threw everything out the window of Apaches default folder. After putting everything back to how it was when I first started messing around, I can now see the old website.

        Sorry for the confusion.
        I guess that the previous message with the error log just shows me turning web sharing off and on as I tried to figure out what was going on?

        Cheers,

        Tatlar
        • Okay, figured it out....
          2002-09-06 12:04:25  jtangney [View]

          I saw the same messages in my apache log (which is how I got to this page ;->) The solution was to remove the .DS_Store file from the document root directory (/Library/WebServer/Documents). These folders are created by the Finder.
      • Changed the index.html, now getting "forbidden" on both IP's!!
        2002-08-09 07:41:03  mrecord [View]

        I was having this same problem for a while. Then I figured out that I had to change the privileges for the items in the directory to "Read Only" (for Group and Everyone). That solved the Permission Denied problems.
    • Changed the index.html, now getting "forbidden" on both IP's!!
      2002-03-20 10:41:13  jaymzalgen [View]

      I also get a statfs failed because: No such file or directory
      in my error log, What does this mean?
      It seems to happen on any page access
      although everything appears to be working fine.

      Here is the log:
      [Wed Mar 20 13:26:07 2002] [notice] Accept mutex: flock (Default: flock)
      statfs failed because: No such file or directory
      statfs failed because: No such file or directory
      statfs failed because: No such file or directory