Forbidden You don’t have permission to access / on this server. You don’t have permission to access /phpmyadmin/ on this server. 解决办法
wampserver安装完成后,本地搭建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
</Directory>
这里改成:
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
还有一处将下面
onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
现在打开localhost或127.0.0.1时发现可以访问了,但访问phpmyadmin时候,出现“You don’t have permission to access /phpmyadmin/ on this server.”的提示。
解决方法,打开如下文件:
C:/wamp/alias/phpmyadmin.conf //这个就是你的wamp的安装目录下的内容,用编辑器打开
修改成这样:
<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
Allow from 127.0.0.1
</Directory>
phpmyadmin就提示错误#1045 - Access denied for user ‘root’@‘localhost’ (using password: YES)
原因是你电脑已经安装了mysql数据库
而且设置了密码
你配置下phpmyadmin 下面的config.inc.php 把里面的用户名 密码相应的修改下 就ok了