Access forbidden! Error 403

Discussion in 'PHP' started by jacka, Apr 28, 2008.

  1. #1
    Strange problem.
    When I put a folder (containing php files) in my plesk website it comes up with the following error when I try to access it:
    
    Access forbidden!
    
    You don't have permission to access the requested object. It is either read-protected or not readable by the server.
    
    If you think this is a server error, please contact the webmaster.
    
    Error 403
    
    HTML:
    However if I take them out of folder and place it in the root of the directory (httpdocs) it behaves properly.

    It seems that I need to give permission, somehow, to access folders deep inside my root directory, but how?

    By the way, I have checked the permission file and it has permission to read and execute.

    Thanks for looking into this.
     
    jacka, Apr 28, 2008 IP
  2. jacka

    jacka Peon

    Messages:
    165
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi
    Surely some one must have some ideas!!!
    Please help.
     
    jacka, Jun 3, 2008 IP
  3. xlcho

    xlcho Guest

    Messages:
    532
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #3
    What's the OS? Did you check the folder permissions too, ot just the file's?
     
    xlcho, Jun 3, 2008 IP
  4. jacka

    jacka Peon

    Messages:
    165
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi
    both folder and file have 766 permission, which is ok.
    The os is:Apache/2.0.55 (Ubuntu) mod_python/3.1.4 Python/2.4.3 PHP/4.4.2-1build1 mod_ssl/2.0.55 OpenSSL/0.9.8a mod_perl/2.0.2 Perl/v5.8.7.
    Thx
     
    jacka, Jun 3, 2008 IP
  5. xlcho

    xlcho Guest

    Messages:
    532
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hmm, who's the owner of the directory and files? Maybe that's what is wrong, though it should be the same as on your root directory. Check it anyways, cause i've had problems with this. If the owner is different this could be the reason you cannot access the files trough the web server.
     
    xlcho, Jun 3, 2008 IP
  6. jacka

    jacka Peon

    Messages:
    165
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi xlcho

    What do you mean "who is owner of the directory?"
    It is VPS and the documents are stored in httpdocs.
     
    jacka, Jun 3, 2008 IP
  7. xlcho

    xlcho Guest

    Messages:
    532
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hi,
    i mean the OS's user who owns the directory and the files in it. Depending on how you create them, the owner could be different than the owner of the web server, therefor you cannot access it trough apache. This might make it a bit more clear - http:// en.wikipedia.org/wiki/Chown
     
    xlcho, Jun 3, 2008 IP
  8. jacka

    jacka Peon

    Messages:
    165
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    jacka, Jun 3, 2008 IP
  9. xlcho

    xlcho Guest

    Messages:
    532
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Sorry but no more ideas... You should really check this, though. I believe your control panel shold be displaying this information somewhere in the upload section.
     
    xlcho, Jun 3, 2008 IP