phpapacheeasyphp

EasyPHP default load page


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!


Solution

  • 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