php与apache安装完成后,报403的错误,没有权限无法访问,该怎么解决? 5
提示该问答中所提及的号码未经验证,请注意甄别。
4个回答
展开全部
如果是 学习阶段的话,先备份好 apache的配置文件。
然后
<Directory "/usr/local/apache/htdocs">
#
# 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
#
</Directory>
然后
<Directory "/usr/local/apache/htdocs">
#
# 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
#
</Directory>
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你的80端口被占用了,把你电脑的iis关闭了试试,在不行就联系我 651732826
追问
我是手动安装的,没用iis,那应该怎么办?
追答
解决了吗,下载个集成环境试试,
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
既然是403了 apache肯定是启动的。
看一下httpd.conf里面的网站目录权限。
看一下httpd.conf里面的网站目录权限。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
查看apache的日志文件,里面会有提示的
追问
请问那是什么原因?
追答
你把日志贴上来先
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询