Directory index forbidden

1

Have you ever seen this error in PHP? How to solve?

  

[error] Directory index forbidden by Options directive:

    
asked by anonymous 17.03.2015 / 01:05

2 answers

1

Your server is forbidding directory listing. To enable the listing, include this in your .htaccess file:

Options +Indexes 
    
17.03.2015 / 01:18
1
  

Directory index forbidden by Options directive.

This error indicates that there is no default file ( index.php, index.html .. ) in the directory, this means that it will display the directory content listing, but due to policy Options -Indexes , this will be prohibited by server configuration.

To change this setting, edit the file httpd.conf or .htaccess and look for the directive Options -Indexes and change the negative sign - to positive + , save and try again.

17.03.2015 / 01:19