如何访问 XAMPP 7.0.9 安全页面?

2022-01-14 00:00:00 xampp security php apache

我很难访问 xampp 7.0.9 的安全页面.

I have a hard time accessing the security page of xampp 7.0.9.

当我尝试访问 http://localhost/security 时,我得到一个找不到对象的错误.如果我尝试访问 http://localhost/security/xamppsecurity.php 我得到一个对象未​​找到错误也是.

When I try to access http://localhost/security I get an object not found error. If I try to access http://localhost/security/xamppsecurity.php I get an object not found error as well.

我试图在官方网页以及官方论坛上找到答案,但没有找到任何可以帮助的东西.

I tried to find an answer on the official webpage as well as the offical forums but didnt find anything that could be of help.

推荐答案

是的,XAMPP 似乎删除了安全页面.他们的论点是您不需要本地环境的设置.

Yes it seems like XAMPP has removed the security page. Their argument is that you'll not need the setting for a local environment.

对于像我这样的人来说,唯一的问题是我的 XAMPP 服务器中有多个测试站点,并且在所有这些测试站点中,我都为我的 mysql root 设置了密码.因此,我需要设置一个 mysql root 密码(因为我无法将所有测试站点都更新为无密码).我是在 XAMPP 控制面板中使用 shell 完成的

The only problem for someone like me is that I have multiple test sites in my XAMPP server and in all of those test site I've set my mysql root a password. So, I need a mysql root password to be set (since I can't update all my test sites to no-password). I did it using the shell in XAMPP Control Panel

mysqladmin --user=root password "newpassword"

我遇到一个新问题,PhpMyAdmin 将不再工作,当您访问 http://localhost/phpmyadmin/时登录页面消失了

I encounter a new problem, PhpMyAdmin will not work anymore and the login page disappeared when you access http://localhost/phpmyadmin/

为此,我打开了 xamppphpMyAdmin 中的 config.inc.php 文件,并在那里设置了适当的密码.

For this I opened up config.inc.php file present inside xamppphpMyAdmin and set the appropriate password there.

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'password';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';

相关文章