1

I've noticed that when I access local web the default index.php file in the www folder doesn't show, and when I open a folder it automatically opens the file with name index.html, anyone knows why that is happening? (I'm using EasyPHP 1.8 because it's the version we're using in high school).

Thanks!

simhumileco
  • 31,877
  • 16
  • 137
  • 115

1 Answers1

0

It depends on the web server configuration you're using.

Set in apache2 configuration file (for example in Ubuntu 16.04 /etc/apache2/apache2.conf) or in .htaccess file (that will give priority to .php file over .html file):

DirectoryIndex index.php index.html index.htm

or simply:

DirectoryIndex index.php
simhumileco
  • 31,877
  • 16
  • 137
  • 115
  • 1
    thanks for the answer, more precisely I was looking to know if easyphp specifically opened the file named "index" and I got my answer I guess. –  Mar 31 '18 at 05:59