php 如何访问 XAMPP 7.0.9 安全页面?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39590558/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can I access the XAMPP 7.0.9 Security page?
提问by DieNuss
I have a hard time accessing the security page of xampp 7.0.9.
我很难访问 xampp 7.0.9 的安全页面。
When I try to access http://localhost/securityI get an object not found error. If I try to access http://localhost/security/xamppsecurity.phpI get an object not found error as well.
当我尝试访问http://localhost/security 时,出现未找到对象的错误。如果我尝试访问http://localhost/security/xamppsecurity.php,我也会收到找不到对象的错误。
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.
我试图在官方网页和官方论坛上找到答案,但没有找到任何有用的东西。
回答by fdiengdoh
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 似乎删除了安全页面。他们的论点是您不需要本地环境的设置。
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
对于像我这样的人来说,唯一的问题是我的 XAMPP 服务器中有多个测试站点,并且在所有这些测试站点中,我都为我的 mysql root 设置了密码。因此,我需要设置一个 mysql root 密码(因为我无法将所有测试站点更新为无密码)。我使用 XAMPP 控制面板中的 shell 做到了
mysqladmin --user=root password "newpassword"
I encounter a new problem, PhpMyAdmin will not work anymore and the login page disappeared when you access http://localhost/phpmyadmin/
我遇到了一个新问题,当您访问http://localhost/phpmyadmin/ 时,PhpMyAdmin将不再工作并且登录页面消失了
For this I opened up config.inc.phpfile present inside \xampp\phpMyAdmin\and set the appropriate password there.
为此,我打开了\xampp\phpMyAdmin\ 中的config.inc.php文件并在那里设置了适当的密码。
/* 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'] = '';
回答by Mamun
I'm having the same issue you are having. After doing lots of search in the internet, I just found this
我遇到了和你一样的问题。在互联网上做了很多搜索后,我才发现这个
the "security" link FORTUNATELY hase gone, that link and actions were confusing and most Xampp users DESTROYED their installation after using it.
“安全”链接幸运地消失了,该链接和操作令人困惑,大多数 Xampp 用户在使用后破坏了他们的安装。
For details you may look here New Welcome XAMPP and docs
有关详细信息,您可以在这里查看新欢迎 XAMPP 和文档
回答by Moddwe
If you are seeing the Access Denied page when you go to phpmyadmin after setting password for root then here is the solution. Go to config file (xampp/phpmyadmin/config.inc.php) and change configto cookiein the following line. $cfg['Servers'][$i]['auth_type'] = 'config';
如果您在为 root 设置密码后转到 phpmyadmin 时看到访问被拒绝页面,那么这里是解决方案。转到配置文件 (xampp/phpmyadmin/config.inc.php) 并在以下行中将配置更改为cookie。$cfg['Servers'][$i]['auth_type'] = 'config';
This will enable the login page and next time you go to phpmyadmin, you'll see a login page. Now login with your username and password. Hope this helps.
这将启用登录页面,下次您访问 phpmyadmin 时,您将看到一个登录页面。现在使用您的用户名和密码登录。希望这可以帮助。