windows 安装apache php phpMyAdmin

Apache
phpMyAdmin
PHP Thread Safe

https://blog.csdn.net/zhaomininternational/article/details/42293511
https://blog.csdn.net/yinhe888675/article/details/83113309

配置index.php

1下面就是配置重写的模块了,首先在conf/httpd.conf配置文件中加载mod_rewrite.so模块 ,找到一下语句,去掉前面的#

LoadModule rewrite_module modules/mod_rewrite.so
2.将conf/httpd.conf文件中的AllowOverride None都改为AllowOverride All

3.在conf/httpd.conf文件中中修改为一下语句:


    DirectoryIndex index.html index.php

温馨提示:index.html和index.php之间是空格,不是“,”,一定要注意,否则就会出现localhost访问项目是出现项目文件目录的情况,而使用localhost/index.php时才可以正常访问。

4.重启Apache服务,即可生效

你可能感兴趣的:(other,java)