出现如下错误信息,前提条件 :apache其他网站都能正常访问,phpmyadmin不能访问
解决问题及分析方法
A: 首查询apache的log记录,这种错误解决问题思路如下:
[Sun Oct 14 13:45:23.146817 2018] [authz_core:error] [pid 3124:tid 900] [client 180.108.153.53:38914] AH01630: client denied by server configuration: D:/wamp64/apps/phpmyadmin4.6.4/
1.找到phpmyadmin的配置文件,如下图所示
2.设定内空如下:如下图所示的图片
Alias /phpmyadmin "d:/wamp64/apps/phpmyadmin4.6.4/"
<Directory "d:/wamp64/apps/phpmyadmin4.6.4/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
<ifDefine APACHE24>
Order Deny,Allow
Allow from all
</ifDefine>
<ifDefine !APACHE24>
Order Deny,Allow
Allow from all
Allow from 127.0.0.1
</ifDefine>
# To import big file you can increase values
php_admin_value upload_max_filesize 128M
php_admin_value post_max_size 128M
php_admin_value max_execution_time 360
php_admin_value max_input_time 360
</Directory>
================================================================================================
A: 首查询apache的log记录,这种错误解决问题思路如下:
[Sun Oct 14 13:45:57.934817 2018] [alias:warn] [pid 3088:tid 204] AH00671: The Alias directive in D:/wamp64/alias/phpmyadmin.conf-back at line 1 will probably never match because it overlaps an earlier Alias.
[Sun Oct 14 13:45:57.934817 2018] [alias:warn] [pid 3088:tid 204] AH00671: The Alias directive in D:/wamp64/alias/phpmyadmin.conf-back at line 1 will probably never match because it overlaps an earlier Alias.
1. 删除备份的文件,原因如下:这apache只认文件夹下的文件,不认文件名的,配置还是以备份的生效,好了删了.终于可以了.(因为phpmyadmin.config-back中对相同目录的文件夹的限制覆盖饿了httpd.conf下的限制)