这是windows,文件权限不会是问题。
问题出在您的 httpd.conf 和安全设置中
这是线索client ::1:50536]。它使用 IPV6 ip 地址,所以我的猜测是您不允许从环回地址访问 ::1
为了证明我在正确的轨道上,如果你在浏览器中使用这个地址,它应该可以工作http://127.0.0.1/netwerken/index.php ...假设你正在运行一个名为 index.php 的脚本,如果不使用你正在运行的那个。
首先检查您的 c:\windows\system32\drivers\etc\hosts 文件是否包含这两行
127.0.0.1 localhost
::1 localhost
然后检查您的 httpd.conf(使用 wampmanager 菜单对其进行编辑,以便获得正确的文件)
查找此部分,它使用较旧的 APache 2.2 语法。
<Directory "d:/wamp/www">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
# Require all granted
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
Allow from localhost
</Directory>
把它改成
<Directory "d:/wamp/www">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Require local
# Apache 2.4 syntax for any of the addresses 127.0.0.1 or ::1 or localhost
</Directory>
I suggest you read this as well,在 WampServer 2.4 中发布了一些错误,这应该告诉你如何修复它们