网站发布时出现Forbidden You don't have permission to access / on this server. 错误
来源:互联网 发布:出租车司机滴滴软件 编辑:程序博客网 时间:2024/05/14 18:26
今天在测试一个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>
然后保存,重启服务,在访问就解决了这个问题。
因为刚刚接触,处于新手上路阶段,所以写下来备忘。
- 网站发布时出现Forbidden You don't have permission to access / on this server. 错误
- wampan安装后出现Forbidden You don't have permission to access / on this server. 解决办法
- 局域网访问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.
- HTTP错误:Forbidden You don't have permission to access …… on this server.
- Wamp错误: Forbidden You don't have permission to access / on this server.
- WAMP Server多站点出现You don t have permission to access / on this server错误
- VisualSVN---You don't have permission to access on this server/Access ...forbidden
- yii中访问出现的错误: You don't have permission to access / on this server
- Apache配置问题Forbidden You don't have permission to access / on this server
- Apache配置问题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.
- 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.
- You don\'t have permission to access /test.php on this server.怎样解决Forbidden
- pomelo源码分析(一)
- 关于将一个对象赋值给另一个对象
- WebGame Design 的知识空间:达人BLOG收集
- DOS命令大全(经典收藏)
- C# List<T>用法
- 网站发布时出现Forbidden You don't have permission to access / on this server. 错误
- Flex日期
- CentOS6 vsFTP安装与配置
- PB数据窗口绝对技巧
- sql查询重复记录、删除重复记录方法大全
- Python中的除法
- 优先队列的简单实现
- 表格中嵌套progressbar源码
- jquery设置背景图片:$(this).css("background-image","url(on.jpg)");就可以了