index of folder image

as you can see it has index.php file but it is not opening it by default.

I have edited /etc/apache2/mods-enabled/dir.conf here is the file

<IfModule mod_dir.c>
    DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm

It is happening with only this folder. All other folder are opening there index.php file.


Change the name of the Index.php file to index.php. Linux servers are case-sensitive. The index.html, index.htm, or index.php file names must be in all lowercase in order to be found. If the server finds no index, it will show a list of files.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.