1
Have you seen this error in PHP? How to solve?
[error] Directory index Forbidden by Options Directive:
1
Have you seen this error in PHP? How to solve?
[error] Directory index Forbidden by Options Directive:
1
Your server is prohibiting the listing of directory contents. To enable the listing, include this in your archive .htaccess
:
Options +Indexes
1
Directory index Forbidden by Options Directive.
This error indicates that there is no standard file (index.php, index.html..) in the directory, this means that it will show the directory’s content listing, but due to the directive Options -Indexes
, this will be prohibited by the 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 - for positive +, save and try again.
put la amigo, went wrong , instead of listing falls on error page !
@Jjuniorcarneiro Returns the same error? I did it purposely here and got with the Options +Indexes
solve, try the following: leave the .htaccess
the way it was and edits the httpd.conf
. Look for Options (shortcut: CTRL+F on Notepad) and leave it so: Options +Indexes
, it is necessary restart the server so you can see the changes.
@Jjuniorcarneiro Another thing, which Operating System? you use XAMPP, WAMMP? in my machine the httpd.conf
is in: C: xampp apache conf httpd.conf.
am direct in Cpanel already ! I own the server and activated la tb ! error persists : Directory index Forbidden by Options Directive:
@Jjuniorcarneiro Intriguing. There must be something passing by, your user permissions is 711? What is the message complete of error?
[Thu Mar 19 12:27:39 2015] [error] [client 66.249.64.98] Directory index Forbidden by Options Directive: /home/sisv2/public_html/files/site.frissonestetica.com.br/
Internal Server Error http://portal.ornamentacoesarruda.com.br/
@Jjuniorcarneiro It was not a good idea, undo it. There must be some conflict for this error to persist, I think. Do you have access to a terminal/console? If so, run the command: grep -r -i "Options -Indexes " /home/SeuNomeDeUsuarioAqui
, This will search your folder for the sequence Options -Indexes
, see if anything pops.
@Jjuniorcarneiro Managed to solve?
Thank you very much
@Jjuniorcarneiro Just out of curiosity, how did you solve?
Browser other questions tagged php
You are not signed in. Login or sign up in order to post.
yes friend, I have put but persist error !
– user22753