PHP错误:Forbidden You don't have permission to access / on this server.
来源:互联网 发布:喜哥淘宝店铺 编辑:程序博客网 时间:2024/05/29 03:51
今天在测试一个php程序的时候,发现这个问题:
Forbidden
You don't have permission to access / on this server.
开始的时候我是用http://localhost/test.php进行的测试,没有发现问题,后来要在内网测试一下就要用IP地址进行那个访问了,如:http://10.10.50.195/test.php,就出现了这个问题。
后来咨询了一下朋友(php高手),说修改一下php的配置文件httpd.conf。
在原有的位置文件中找到配置节
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</Directory>
修改成
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
# Deny from all
Allow from all
#允许所有访问
Satisfy all
</Directory>
还有
<Directory "D:/Wamp5/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.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 all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
修改成
<Directory "D:/Wamp5/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.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 all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1
Allow from all
</Directory>
然后保存,重启服务,在访问就解决了这个问题。
因为刚刚接触,处于新手上路阶段,所以写下来备忘。
原地址:http://www.cnblogs.com/icebutterfly/archive/2010/02/01/1661237.html
- 局域网访问Apache PHP错误:Forbidden You don't have permission to access / on this server.
- PHP错误:Forbidden You don't have permission to access / on this server. 解决办法
- PHP错误:Forbidden You don't have permission to access / on this server.
- PHP错误:Forbidden You don't have permission to access / on this server.
- 网站发布时出现Forbidden You don't have permission to access / on this server. 错误
- HTTP错误:Forbidden You don't have permission to access …… on this server.
- Wamp错误: Forbidden You don't have permission to access / on this server.
- Forbidden You don't have permission to access /localhost/plan/index2.php on this server.
- php:Forbidden You don’t have permission to access / on this server.
- php:Forbidden You don’t have permission to access / on this server.
- You don\'t have permission to access /test.php on this server.怎样解决Forbidden
- Forbidden You don't have permission to access /php/ on this server.
- Forbidden:You don't have permission to access /index.php on this server
- VisualSVN---You don't have permission to access on this server/Access ...forbidden
- php错误:You don't have permission to access / on this server.
- php错误:You don't have permission to access / on this server.
- php错误:You don't have permission to access / on this server.
- Apache配置问题Forbidden You don't have permission to access / on this server
- poj 2942 Knights of the Round Table 补图+点双连通分量+判定二分图
- 一目了然的字符串知识
- 谁说门户已死?从世界杯看新浪的四大优势
- 生成静态页的 后台读取数据库,前台选中
- CentOS6.4-X64下Hadoop-2.0.0-CHD4伪分布安装(单机)!
- PHP错误:Forbidden You don't have permission to access / on this server.
- 疯狂IOS学习--FKPrinter之纠正
- 如何选择移动广告平台
- C++ opencv快速例子学习——读图显示
- Effective C++ Item 33 避免遮掩继承过来的名称
- 9解析函数(三)
- 删除数据库时提示数据库正在被使用,无法删除(Cannot drop database databasename because it is currently in use)的问题
- iOS开发之Objective-C与JavaScript的交互
- java去除字符串空格