SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Apr 2005
    Posts
    236
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Directories '403 Forbidden'

    My main directory (/var/www/html/) works fine, and the files in it load properly. If I create a folder within this folder, that folder and the files within that folder are inaccessible.

    For example:
    /var/www/html/test.file WORKS
    /var/www/html/1/test.file FORBIDDEN

    The same owner, group, and permissions are on both files. I have tried changing the owner to apache, root, and others. The permission for both files is set to 775.

    Any idea?

  2. #2
    SitePoint Wizard gate2vn's Avatar
    Join Date
    Jan 2004
    Location
    Oslo, Norway
    Posts
    1,053
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What is the owner of html folder? Is that HTML file, or PHP file?
    Clustered CloudLinux Hosting | WordPress Hosting |
    Advanced Antispam | Managed Xen VPS
    in US West coast and Asia-Pacific datacenters
    Contact us now on Twitter @vietnap

  3. #3
    SitePoint Addict
    Join Date
    Apr 2005
    Posts
    236
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The owner of html is root. The file in question is a jpg.

  4. #4
    SitePoint Enthusiast
    Join Date
    Sep 2008
    Posts
    71
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the folder needs permissions set along with the files
    had this problem awhile back

    anything in a folder that doesn't have permission is off limits even though the files have permission


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
  •