Have you ever seen this error in PHP? How to solve?
[error] Directory index forbidden by Options directive:
Have you ever seen this error in PHP? How to solve?
[error] Directory index forbidden by Options directive:
Your server is forbidding directory listing. To enable the listing, include this in your .htaccess
file:
Options +Indexes
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.