Solution to failure to load index.php: First find and open the "httpd.conf" file; then add the content as "DirectoryIndex index.hmtl index.php"; finally modify the "httpd-vhosts.conf" file That’s it.
Recommended: "PHP Tutorial"
The index.php file cannot be automatically loaded when accessing the project
1. Modify the configuration file D:\lamp\apache\conf\httpd.conf and add DirectoryIndex index.hmtl index.php
<IfModule !mpm_netware_module> DirectoryIndex index.hmtl index.php <IfModule !mpm_winnt_module>
2. The second method:
Modify D:\lamp\apache\conf\extra\ httpd-vhosts.conf file plus
Options +Indexes DirectoryIndex index.php index.html
The above is the detailed content of What to do if index.php cannot be loaded. For more information, please follow other related articles on the PHP Chinese website!