当前位置:Gxlcms > 数据库问题 > 访问localhost文件下的testmysql.php文件报Not Found

访问localhost文件下的testmysql.php文件报Not Found

时间:2021-07-01 10:21:17 帮助过:17人阅读

打开httpd.conf文件(F:\wamp\bin\apache\apache2.4.9\conf\httpd.conf),要修改的地方:
1.搜索 DocumentRoot 找到前面没有#号的,后修改为:DocumentRoot "D:/web/www",这个www就是你以后的所有网站代码文件存放目录和访问目录,具体请自己设置。
2. 搜索 <Directory 找到类似:<Directory "D:/web/www"></Directory>这对标签的,在标签的属性处添加或修改为"D:/web/www",注意,此路径和上面1的路径要一致。
再重启一下Apache,应该就可以了。

访问localhost文件下的testmysql.php文件报Not Found

标签:size   技术   dir   网站   mysq   alt   amp   document   代码   

人气教程排行