知识问答
php如何设置首页
2026-11-22 18:16:38
来源:互联网转载
推荐:《php视频教程》
php配置默认页
一、php配置默认页,在apache 安装目录下的 conf/httpd.conf ,添加如下图
<IfModule dir_module> DirectoryIndex index.html index.php index.htm l.php</IfModule>
二、配置apache 加载PHP模块,在apache 安装目录下的 conf/httpd.conf ,添加如下图
立即学习“PHP免费学习笔记(深入)”;
三、配置完成后,一定要记得重启apache服务,否则配置无法生效。