wamp You don't have permission to access / on this server等问题的解决.

原文:wamp You don't have permission to access / on this server等问题的解决.

安装完wamp之后,安装网上的教程设置虚拟路径,出现了问题,同样的问题由不同的原因导致。希望对有些大意的人有帮助。

1、httpd.conf去掉Include conf/extra/httpd-vhosts.conf前面的#。

2、httpd.conf中添加Listen 相应的端口,我的是8080

3、在conf\extra下面的httpd-vhosts.conf文件中添加

<VirtualHost *:8080>

DocumentRoot D:/wamp/www/aa

ServerName localhost

<Directory "d:/wamp/www/aa">

Options Indexes FollowSymLinks

Order allow,deny

Allow from all

AllowOverride All

</Directory>

</VirtualHost>

4、然后调用localhost,就出现下面的错误:

Forbidden

You don‘t have permission to access /on this server.

(没有设置这一切时,localhost访问的没有问题的)

5、最后发现是没有删掉httpd-vhosts.conf文件中的这段代码导致的:

<VirtualHost *:80>

ServerAdmin [email protected]

DocumentRoot "c:/Apache23/docs/dummy-host.example.com"

ServerName dummy-host.example.com

ServerAlias www.dummy-host.example.com

ErrorLog "logs/dummy-host.example.com-error.log"

CustomLog "logs/dummy-host.example.com-access.log" common

</VirtualHost>

删掉或者注释掉这段代码,再运行localhost就没有问题了。

6、localhost运行好使了,但运行localhost:8080却有新的问题:

Forbidden

You don‘t have permission to access /index.phpon this server.

7、然后也是找了很多,多是说什么allow from all等等的问题。但无论我怎么设置都是这个问题。

几经波折,发现把Options Indexes FollowSymLinks 后面添加上 ExecCGI就好使了。

<VirtualHost *:8080>

DocumentRoot D:/wamp/www/aa

ServerName localhost

<Directory "d:/wamp/www/aa">

Options Indexes FollowSymLinks ExecCGI

Order allow,deny

Allow from all

AllowOverride All

</Directory>

</VirtualHost>

wamp You don't have permission to access / on this server等问题的解决.

时间: 2024-12-28 02:10:26

wamp You don't have permission to access / on this server等问题的解决.的相关文章

Linux Centos7 Apache 访问 You don&#39;t have permission to access / on this server.

折腾了很久,今天才找到了最正确的答案.感言真不容易. 百度出来的99%都是采集的内容,全都是错误的. You don't have permission to access / on this server. 百度出的解决方法: 1)关闭selinux .坑,服务器根本就没开启selinux 2)修改 httpd.conf 中的 allow from all!坑,Apache都2.4+,根本就不存在 allow from all ,现在改为了  Require all granted! 3)修改

蛋疼的 403 Forbidden You don’t have permission to access / on this server.

参考博文: a.http://www.linuxidc.com/Linux/2016-09/134827.htm 这个解释挺好 昨天配置新服务器:以为自己老手  就一步到位结果一直出现 403 Forbidden You don’t have permission to access / on this server. 百度所有的解决方法发现还是不行,没办法重新重头一步一步来找错误: 1.从http安装查找:这个最好 是在安装完成后显示下信息页 <?php phpinfo() ?> 我从这个信

wamp出现You don’t have permission to access/on this server提示的解决方法

本地搭建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 <

wamp出现You don’t have permission to access/on this server提示

本地搭建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 </D

启动wamp报错 You don&#39;t have permission to access / on this server

安装完wamp之后,安装网上的教程设置虚拟路径,出现了问题,同样的问题由不同的原因导致. 1.httpd.conf中添加Listen 相应的端口,我的是8080 2.httpd.conf去掉Include conf/extra/httpd-vhosts.conf前面的#. 3.然后调用localhost,就出现下面的错误: Forbidden You don't have permission to access /on this server. 解决方法:在conf\extra下面的httpd

安装wamp后,localhost访问报错“You don&#39;t have permission to access / on this server.”

今天装了一个wamp,在本地测试了一下,发现使用http://localhost/报错403,提示内容如下:"You don't have permission to access / on this server.".用127.0.0.1访问正常,phpMyAdmin也是同样的问题. 在网上搜索了一下有很多都是出现这个问题,但是不是不详细就是没找到解决办法.在此做一下记录,我是安装一路下一步所以安装目录都是默认的. 首先修改Apache,在wampserver下左键,Apache下有

wamp出现You don’t have permission to access/on this server提示(转)

转自http://blog.csdn.net/hong0220/article/details/40262729 ,转载方便以后查看. 今天搭建wamp集成环境,本来已经搭建好了,但是在访问localhost时出现了You don’t have permission to access/on this server的提示,自己没有解决,在查看了http://blog.csdn.net/hong0220/article/details/40262729 之后修改成功.方法如下: 找到httpd.c

wamp报错You don&#39;t have permission to access on this server

打开httpd.conf  将<Directory /> </Directory>的内容替换成 Options FollowSymLinksAllowOverride NoneOrder deny,allowDeny from all 也就是 <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all</Directory> vhost配置: &

WampServer出现You don’t have permission to access/on this server提示

WampServer出现You don't have permission to access/on this server提示 本地搭建WampServer,输入http://127.0.0.1访问正常,当输入http://localhost/,apache出现You don't have permission to access/on this server的提示,如何解决? 找到httpd.conf,用记事本打开httpd.conf,有两处需要修改: <Directory /> Opti