php与apache安装完成后,报403的错误,没有权限无法访问,该怎么解决?

2025-05-13 16:05:55
推荐回答(4个)
回答(1):

如果是 学习阶段的话,先备份好 apache的配置文件。
然后

#
# 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.2/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:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
# 把 这里的deny 改成Allow from all
Allow from all
#

回答(2):

你的80端口被占用了,把你电脑的iis关闭了试试,在不行就联系我 651732826

回答(3):

既然是403了 apache肯定是启动的。
看一下httpd.conf里面的网站目录权限。

回答(4):

查看apache的日志文件,里面会有提示的