Error - Directory index forbidden by Options directive? [duplicate] Error - Directory index forbidden by Options directive? [duplicate] apache apache

Error - Directory index forbidden by Options directive? [duplicate]


Looks like someone disabled directory listing in Apache. If you are allowed to override it with .htaccess just place an .htaccess file in your root web directory with this information:

Options +Indexes


For me this was an issue with not simply having an index.html or index.php (depending on what is in the .htaccess file) file in a folder and trying to pull it's contents. Then again I was using php to read contents, not by command line like I assume you are. If you still have not found a solution try creating an index.(php,html) in the directory that you can't pull contents from.


For me what helped was, walking thru the explanations in the httpd.conf file and making sure I am compliant. The below comment helped:

 # The path to the end user account 'public_html' directory must be # accessible to the webserver userid.  This usually means that ~userid # must have permissions of 711, ~userid/public_html must have permissions # of 755, and documents contained therein must be world-readable. # Otherwise, the client will only receive a "403 Forbidden" message.

I was trying to move the document root and I hadn't set up the right perms..