找到apache的配置文件httpd.conf后找到 DirectoryIndex index.html index.php 在其中添加index.php, 转载于:https://www.cnblogs.com/itdi/p/5844517.html