我已经在Windows 7笔记本电脑上设置了MAMP,并将Localhost设置为HTDOCS文件夹。我创建了一个数据库,并将其命名为db,用户名和密码之后,将wp-config_sample.php重命名为wp-config。
Appache Server和MySQL服务器已打开。在Chrome浏览器中,如果我输入Local -Host/以下显示:
index of/
test.php
但是,HTDOC中的WordPress文件夹不可见在浏览器中,如果我在localhost/mamp/the 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.
请让我知道我还需要在这篇文章中提供哪些信息。谢谢
您需要设置文件夹权限以查看Localhost
中的文件夹运行命令chmod *** /folder
更改权限
@updated:
然后,您应该尝试在host file.conf中添加此类行
Alias /mytest/ "C:/mytest/"
<Directory "C:/mytest/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
Allow from all
Require local
</Directory>