我已经使用Xampp很多年了,但是突然我不能再访问phpmyadmin了。
我得到
Forbidden
You don't have permission to access this resource.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
您可以在这里找到您想要的信息。
<?php
/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */
/*
* Servers configuration
*/
$i = 0;
/*
* First server
*/
$i++;
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
/* Bind to the localhost ipv4 address and tcp */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
/*
* End of servers configuration
*/
?>
我的httpd-xampp.conf的相关部分:
<IfModule alias_module>
Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
<Directory "C:/xampp/phpMyAdmin">
AllowOverride AuthConfig
Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
SSLRequireSSL
</Directory>
</IfModule>
知道哪里出了问题吗?
2条答案
按热度按时间hc2pp10m1#
它的配置方式只允许从本地主机(运行xampp的同一台计算机),所以如果你从局域网客户端尝试,你应该在alis配置中添加一行,如
Require ip 192.168.1.0/24
(根据局域网网络进行相应的编辑)。另外,它是说,当试图fecth错误页面,它遇到了403错误(权限被拒绝).所以它有可能显示的403,这不是真实的的错误,但最后一个.
您应该查看apache日志以验证第一个错误
t3psigkw2#
请转到
然后转到目录标签如下:
然后在目录标签中更改为:
起始日期
结束日期
Restart the Xampp
就是这样!