wamp报错You don't have permission to access on this server

打开httpd.conf  将<Directory />

</Directory>的内容替换成

Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all

也就是

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

vhost配置:

<VirtualHost *:80>
DocumentRoot "E:/wamp/www"
ServerName localhost
<Directory "E:/wamp/www">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "E:/wamp/dwz"
ServerName www.dwz.com
<Directory "E:/wamp/dwz">
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>

hosts配置:

127.0.0.1 localhost
127.0.0.1 www.dwz.com

wamp报错You don't have permission to access on this server

时间: 2024-07-29 08:53:18

wamp报错You don't have permission to access on this server的相关文章

启动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下有

Apache(httpd) 报错You don&#39;t have permission to access /on this server.

项目需要,增加个访问端口,指向不同目录. 但是一直报"You don't have permission to access /on this server."错误 配置文件语法检查: #/etc/init.d/httpd configtest 或 apachectl -t 直接输入:/etc/init.d/httpd 会新显示选项 [[email protected] ~]# /etc/init.d/httpd  Usage: httpd {start|stop|restart|co

报错:1130-host ... is not allowed to connect to this MySql server

解决方法: 1. 改表法. 可能是你的帐号不允许从远程登陆,只能在localhost.这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%" mysql -u root -pvmwaremysql>use mysql; mysql>update user set host = '%

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 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.con

报错解决方法Error: Can&#39;t connect to local MySQL server through socket

Error: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)Errno.: 2002解决方法一:因为你还没有启动mysql,当你启动mysql后,mysql.sock就会自动的生成../bin/safe_mysqld   --user=root   &(这是默认的).如果还没有,就是MYSQL权限没给,或其它原因还有就是 你的mysql是否启动了      启动后一般很难出现这个

长久不用的mysql报错ERROR 2002 (HY000): Can&#39;t connect to local MySQL server through socket &#39;/tmp/mysql.sock&#39; (2)

mac上安装过mysql: 然而,尝试连接时报错: $ mysql -u root -p Enter password: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 尝试去查看mysql.socket文件,发现没有.. $ which mysql /usr/local/bin/mysql 然后试试重启mysql: $ mysql.server start