wampserver安装后访问localhost出现 Forbidden问题
Forbidden
You don't have permission to access / on this server.
修改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 /phpmyadmin/ on this server 解决办法
打开 XXX/wamp/alias/phpmyadmin.conf 文件,
将
<Directory "F:/Software/wamp/alias/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
修改成
<Directory "F:/Software/wamp/apps/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>
然后保存,重启服务,就OK了
最新文章
- 【AS3】Flash与后台数据交换四种方法整理
- python小打小闹之简陋版BBS
- Android网络编程之Socket
- C/C++堆栈指引(转)
- Activity小结
- MS sqlserver 获取某月某年的天数
- POJ 2991 Crane(线段树+计算几何)
- iOS学习 NSString常用技巧
- php 常用正则
- 【LeetCode】89.Gary Code
- vs2013+qt5.3.2+pcl1.8.0+osg2.3开发环境配置
- ArrayList创建步骤及基本方法
- [转]MySQL索引原理及慢查询优化
- Android WebView漏洞(转)
- createobjbyreplace(str,arr) js替换方法保存
- memcache使用方法测试
- 笔记:记录两个新接触的东东- required + placeholder
- mysql创建用户,并指定用户的权限(grant命令)
- rails中path、url路径解析,routes信息,form_for剖析,link_to示例,路由实例说明
- Bayes&#39; theorem (贝叶斯定理)
热门文章
- OpenJDK源码研究笔记(十):枚举的高级用法,枚举实现接口,竟是别有洞天
- 【Henu ACM Round #13 B】Spider Man
- 洛谷 P2684 搞清洁
- struts2学习笔记(7)---数据验证之validateXxx()方法
- KendoUi中KendoDropDownList控件的使用——三级级联模块的实现
- 操作系统 linux 内核的三种进程调度方法
- RISC-V指令集的诞生,";V";也表示变化(variation)和向量(vectors)
- 62.C++文件操作list实现内存检索,实现两千万数据秒查
- Js经典实例收集
- 手机端使用rem的适配