+ Reply to Thread
Results 1 to 5 of 5

Thread: forbidden folder

  1. #1

    forbidden folder

    Hi Flynax,

    On localhost when I tried to access listing images folder like: http://localhost/files/03-2021/
    I got this forbidden screen
    Screen Shot 2021-03-15 at 12.33.16 PM.png

    But on my live flynax site I can access them just fine, I can see all pictures file and folders, like this:
    Screen Shot 2021-03-15 at 12.33.05 PM.png

    It's weird because my localhost site and live site has the same file and setting. How can I fix so that live site show forbidden screen as well?

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    3,138
    Hello Wei,

    Make sure that the files directory and its sub-directories have permissions 755 for your group or user on the local server

  3. #3
    Quote Originally Posted by Rudi View Post
    Hello Wei,

    Make sure that the files directory and its sub-directories have permissions 755 for your group or user on the local server
    Hi Rudi,

    Yes I just checked it and it's 755.
    Screen Shot 2021-03-15 at 2.01.34 PM.png

  4. #4
    I think there is something wrong with my cpanel. So I'm asking host provider to check

    Screen Shot 2021-03-15 at 3.40.43 PM.png

    It seems that index type: inherit does not work. If I manually change them to no indexing then it work.

  5. #5
    They finally resolved it by adding this code in the .htaccess file in the files folder
    I still think their cpanel has problem

    Options -Indexes

    <Files ~ "\.(php|php2|php3|php4|php5|php7|phtml|pl|py|psp|j s|jsp|cgi|util)$">
    Order deny,allow
    Deny From All
    Options All -Indexes
    </Files>

+ Reply to Thread