In CentOS, after installing Apache and PHP, the index.php priority is the highest by default.
If you want to change to index.html first, you need to edit the file as follows:
edit httpd.conf file to find DirectoryIndex this line, plus index.php as follows:
DirectoryIndex index.html index.htm index.php
Save the edited content ( under VI, press ESC and type: Wq Enter to save the edited text and exit )
Then modify the PHP-related configuration file php.conf:
DirectoryIndex index.html index.htm index.php in/etc/httpd/conf.d/php.conf file
This order of precedence is index.html > index.htm > index.php
Last reboot Apache:service httpd restart
(If you encounter bash:service:command not found, there is a problem with the command path, add/sbin/before the command)
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
The above describes the CentOS, set the priority of indexhtml and indexphp, including aspects of the content, I hope the PHP tutorial interested in a friend helpful.