403 errors when using Apache Web Server..HELP!!

Discussion in 'Mac Apps and Mac App Store' started by Cooncat, Apr 24, 2004.

  1. Cooncat macrumors newbie

    Joined:
    Dec 2, 2003
    #1
    Hey guys, I'm trying to host some files using my computer as a web server...I turned on web sharing and put the files in the sites folder, and it seemed to work fine. However, I later noticed that only *some* of the files worked, and the others inexplicably gave me the "forbidden-you don't have permission to access ______ on this server"...I don't understand what's going on here...Help me I'm stupid!
     
  2. superbovine macrumors 68030

    superbovine

    Joined:
    Nov 7, 2003
    #2
    goto the directory that contain the html/php or whatever files you have in there.

    right click or ctrl click -> get properties
    Ownership & Permissions -> Details
    they all should be read/write

    from terminal if you a familar with unix
    cd to the directory the files are in
    then do a chmod 666 filename
     
  3. Cooncat thread starter macrumors newbie

    Joined:
    Dec 2, 2003
  4. Cooncat thread starter macrumors newbie

    Joined:
    Dec 2, 2003
    #4
    Ok, everything seems to work on my end, but when other people try to access the files they get this error--
    Internet explorer cannot download ****** from ***********

    A connection with the server could not be established

    What do I need to do to get this to work?
     
  5. Westside guy macrumors 601

    Westside guy

    Joined:
    Oct 15, 2003
    Location:
    The soggy side of the Pacific NW
    #5
    Could be any number of issues. Are the other people on your local network, or are you trying to share to the world?

    - Are you behind a firewall or router?

    - Perhaps your ISP is blocking port 80? Most ISPs explicitly state that you're not supposed to run a server using their service, and some do block various ports.

    - What happens when you go to your own server via a browser; either to "localhost" or else to the actual address that outsiders will use?
     
  6. superbovine macrumors 68030

    superbovine

    Joined:
    Nov 7, 2003
    #6
    this depends on your network setup as the previous poster eluded to.

    there is a big difference ppl on your lan and your isp.

    if you are using a broadband router and ppl are trying to connect through your dsl/cable there is some problems. a lot isp block port 80 (http) port. also you have to configure port forwarding on your router.

    if you are just trying to connect from your lan or the outside for that matter, you could have your firewall enabled. the error you state means that something is stopping them establishing a connection to your mac.
     

Share This Page