php错误:访问网页出现Forbidden you donnot have permission to access … on this server
2016-04-24 17:15
841 查看
打开apache的httpd.conf配置文件,修改两个位置
修改为
修改为
<Directory /> AllowOverride none Require all denied </Directory>
修改为
<Directory /> AllowOverride none # Require all denied allow from all </Directory>
<Directory "C:/wamp64/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.4/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: # AllowOverride FileInfo AuthConfig Limit # AllowOverride all # # Controls who can get stuff from this server. # # onlineoffline tag - don't remove Require local </Directory>
修改为
<Directory "C:/wamp64/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.4/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: # AllowOverride FileInfo AuthConfig Limit # AllowOverride all # # Controls who can get stuff from this server. # # onlineoffline tag - don't remove # Require local allow from all </Directory>
相关文章推荐
- PHP运算符
- PHP setcookie() 函数
- PHP函数
- php中实现的一个curl批处理的实例
- php第二节课
- FileReader/FileInputStream 和 FileWriter/OutputStream
- laravel环境搭建
- ubuntu系统下php开发环境的搭建
- php基础
- PHP函数
- php在记事本中换行的问题
- 【FTP】在自己的电脑上建立FTP服务器
- PHP 大数相加
- php-fpm配置文件的优化
- php7安装及配置
- matplotlib 绘图
- php面向对象(OOP)编程完全教程
- PHP MySQL 持久连接(mysql_pconnect)
- 使用composer新建一个laravel项目
- php改变时区的代码