Can't open file for reading in document root

Discussion in 'Apache' started by mike-g, Mar 18, 2007.

  1. #1
    Hi,

    I am using Apache 2.2.x. on Fedora Core 6.
    For some reason, I seem to be unable to open a file for reading, with a php script and as the apache user, inside the document root. Is there a default security setting in httpd.conf that needs to be set?

    I am able to open files outside of the document root so there is nothing wrong with the script or permissions.

    Thanks,
    Mike
     
    mike-g, Mar 18, 2007 IP
  2. nullp0

    nullp0 Peon

    Messages:
    27
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Have you checked the folder permissions where the file is located? Other than that and file permissions i dont know what else could it be.
     
    nullp0, Mar 19, 2007 IP
  3. mike-g

    mike-g Guest

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i haven't had a chance to look at it again but i am sure it has something to do with permissions. That has to be it. Thanks.
     
    mike-g, Mar 21, 2007 IP