Mediawiki,密码更改后无法登录 [英] Mediawiki, can't login after password change

查看:152
本文介绍了Mediawiki,密码更改后无法登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Ubuntu 14.04上使用MediaWiki 1.27.0

I'm using MediaWiki 1.27.0 on Ubuntu 14.04

我还没有在服务器上设置电子邮件,所以我要使用mediawiki提供的maintenance/changePassword.php脚本来重置用户密码.

I haven't set up email on the server yet, so I was going to reset a users password using the maintenance/changePassword.php script that mediawiki provides.

当我运行他们的命令时

php maintenance/changePassword.php --conf=/var/www/html/LocalSettings.php --user=myuser --password=newPassword

它说Password set for myuser

现在没有人可以登录,每个人都遇到

Now no one can log in, and everyone gets the same error of

您的登录会话似乎有问题;为了防止会话劫持,该操作已被取消.返回上一页,重新加载该页面,然后重试.

我不知道如何解决此问题.我发现其他人使用较旧版本的mediawiki出现此错误,而下一版本的mediawiki似乎已解决了他们的问题.但这显然不能解决这个问题.

I'm at a loss as to how to fix this. I find other's who have had this error with an older version of mediawiki, and the next version of mediawiki seems to have fixed their problem. But obviously, that can't fix this issue.

感谢您的帮助.

我尝试过的事情

我仔细检查了数据库中的用户帐户,以确保他们的更改密码脚本没有做任何奇怪的事情,而且一切都很好.

I looked through the user accounts in the database to make sure their change password script hadn't done anything odd, and it all looks fine.

我尝试了这个疯狂的解决方案,说您应该在根目录中创建一个tmp目录of MediaWiki并为其提供777访问权限.我尝试过,只是为了咯咯地笑,然后删除了目录.

I tried this crazy solution that said you should create a tmp directory in the root of mediawiki and give it 777 access. I tried that, just for giggles, then deleted the directory.

推荐答案

编辑

这不是解决方案.重新启动apache2后,我可以登录,但是同样的问题再次发生.我不确定发生了什么,但这绝对不能解决问题,不仅仅是暂时解决问题.

This isn't the solution. After restarting apache2, I was able to login, but the same problem happened again. I'm not sure what happened yet, but this definitely didn't resolve the problem more than just temporarily.

我打算删除这个问题,但是我认为这实际上对像我这样的菜鸟有所帮助只是时间问题.

I was going to delete this question, but I think it's only a matter of time before it actually helps some noob like me.

有关在不使用电子邮件的情况下手动重置MediaWiki密码的说明并没有说您应该在运行脚本后重新启动apache,但这似乎是必需的.那应该是我的第一步,但是我开始吓坏了,而我知道要做的一切都直奔窗外.

The instructions on manually resetting the mediawiki passwords without email don't say that you should restart apache once you have run the script, but this seems to be required. That should have been my first step, but I started freaking out, and everything I knew to do went straight out the window.

因此,如果您在mediawiki上手动重设密码,但出现此错误,请重新启动apache.实际上,如果您因任何原因而遇到错误....无论如何,这可能都是一件好事.

So, if you manually reset passwords on mediawiki, and you get this error, restart apache. Actually, if you ever get an error for any reason....this is probably a good thing to try anyway.

这篇关于Mediawiki,密码更改后无法登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆