Home  >  Article  >  Backend Development  >  What to do if index.php cannot be loaded

What to do if index.php cannot be loaded

藏色散人
藏色散人Original
2020-07-23 10:17:576264browse

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.

What to do if index.php cannot be loaded

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn