Apache Error: No matching DirectoryIndex (index.html) found

Apache HTTP ServerThis error may occur when attempting to access applications that have an index.php file (or other index file), but not an index.html or other specified ‘directory index’ file.

For example, phpMyAdmin includes an index.php file upon installation, but not an index.html file.

By default Apache is configured with the following:

…meaning that Apache will only look for directory index files that are named index.html.

So, when attempting to access phpMyAdmin, Apache throws the following error:

[autoindex:error] [pid 20115] [client 192.168.8.10:3018] AH01276: Cannot serve directory /usr/share/phpMyAdmin/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive

In this case we want to add index.php to the DirectoryIndex directive.

Change:

to:

Then exit and save the file with the command :wq .

Be sure to restart Apache:

Want me to do this for you? Drop me a line: itgalaxyzzz {at} gmail [point] com