本地搭建wamp 输入http://127.0.0.1访问正常,当输入http://localhost/ apache出现You don't have permission to access/on this server.的提示 解决方法如下: 找到httpd.conf,用记事本打开httpd.conf,然后将 <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all <…
今天在部署一个系统时,在apache中新开了一个VirtualHost,然后设置了DocumentRoot,等访问时却提示“You don’t have permission to access / on this server”,以为是权限的问题,就将项目根目录改成777权限,结果还是不行,google一番,得到答案. 修改httpd.conf文件,找到如下段: <Directory /> Options FollowSymLinks AllowOverride None Order den…
在apache的配置文件httpd.conf里定义了对网站根默认的访问权限 #<Directory />    Options FollowSymLinks    AllowOverride None    Order deny,allow    Deny from all </Directory> 改为 <Directory />    Options Indexes FollowSymLinks    AllowOverride None</Directory…
vhosts.conf配置文件中虚拟主机的配置如下,Options Indexes FollowSymLinks 后面添加 ExecCGI <VirtualHost 192.168.10.82:80> DocumentRoot "D:\phpStudy\WWW\www.bangbangdj.com" ServerName www.bangbangdj.com <Directory "D:\phpStudy\WWW\www.bangbangdj.com&quo…
Localhost/index.php出现 错误403 you don't have the permission to access on this server 现在已经解决,特将方法与大家分享.希望有用. Apache 里面的conf文件夹,httpd.conf 文件中: <Directory />    Options FollowSymLinks    AllowOverride None    Order deny,allow    deny from all</Direct…
在mac下配置完apache和php环境后,通过localhost访问页面,出现403Forbidden.页面提示: Forbidden You don't have permission to access / on this server. 解决办法是修改/etc/apache/httpd.conf的配置 1.打开终端 2.cd /etc/apache2  --切换到apache目录 3.sudo vim httpd.conf  --需要输入电脑密码 如果apache版本是2.2的话,应该这…
在新安装的谷歌游览器里,打不了PHP网站了,错误显示: Forbidden You don't have permission to access / on this server. 原因还是配置权限问题 解决办法: wamp\bin\apache\Apache2.2.21\conf\extra\httpd-vhosts.conf 文件里,找到对应网站的虚拟机,添加或者修改如下(绿色行10-15行) Listen 8023 <VirtualHost *:8023> ServerAdmin we…
在安装yii的时候 ,当打开了init.bat进行配置的时候小黑本弹出了个小黑框立刻就关闭了,  进入cmd模式再打开init.bat就出现了"You don't have permission to access  on this server"的这个错误,后来综合网上的各个文章,找到了造成了这个问题的原因主要有三个 1 php的permission扩展配置没有开 , 我用的是phpStudy在php-5.6.27-nts里面的配置文件里把去掉extension=php_openss…
之前配置phpmyadmin的时候,在浏览器上输入http://192.168.8.250/phpmyadmin/ 也遇到了You don't have permission to access on this server的问题 在网上搜了很多的资料,有的说是selinux的原因,把它关掉就可以了, 后来,我重新安装了phpmyadmin,发现有时候并不一定是selinux的原因: 再后来,找到了这篇文章的描述: ***********************分割线**************…
最近在安装最近版wampserver 2.2 d时发现安装好后启动服务器,访问localhost显示You don't have permission to access / on this server. 而在目录127.0.0.1下可以访问. 造成这个问题的原因是Apache 的http.conf内的默认配置是 #   onlineoffline tag - don't remove     Order Deny,Allow     Deny from all     Allow from…