【发布时间】:2017-12-03 23:36:45
【问题描述】:
我已经在我的 Windows 7 笔记本电脑上设置了 MAMP,并将 localhost 设置为 htdocs 文件夹。 在我在这个文件中命名了数据库、用户名和密码之后,我创建了一个数据库并将 wp-config_sample.php 重命名为 wp-config。
appache 服务器和 MYSQL 服务器已开启。 如果我在 Chrome 浏览器中输入 localhost/,则会显示以下内容:
index of/
test.php
但 htdocs 中名为 testsite 的 wordpress 文件夹不可见 如果我在浏览器中输入 localhost/MAMP/,则 MAMP 页面会正确显示。 如果我输入 localhost:3306/testsite 会显示以下内容:
This page isn’t working
localhost sent an invalid response.
ERR_INVALID_HTTP_RESPONSE
MySQL 端口已更改为免费的 3306
如果我输入 localhost/testsite 会显示以下内容:
Forbidden
You don't have permission to access /testsite/ on this server.
请让我知道我需要在这篇文章中添加哪些其他信息。谢谢
【问题讨论】:
标签: php mysql wordpress localhost mamp