Difference between revisions of "Reset root or admin password of mediawiki"
From Notes_Wiki
(Created page with "<yambe:breadcrumb>Mediawiki_configuration|Mediawiki configuration</yambe:breadcrumb> =Reset root or admin password of mediawiki= To reset root or admin password of wiki use f...") |
m |
||
Line 21: | Line 21: | ||
#:</pre> | #:</pre> | ||
#:: at end of LocalSetting.php file to get more details | #:: at end of LocalSetting.php file to get more details | ||
<yambe:breadcrumb>Mediawiki_configuration|Mediawiki configuration</yambe:breadcrumb> |
Revision as of 08:19, 9 September 2018
<yambe:breadcrumb>Mediawiki_configuration|Mediawiki configuration</yambe:breadcrumb>
Reset root or admin password of mediawiki
To reset root or admin password of wiki use following steps:
- Comment all $wgAuth settings in LocalSettings.php so that wiki only uses local authentication.
- Connect to wiki database by looking at database configuration in LocalSettings.php
- Look at user_groups table and find user_id of user who is member of bureaucrat and sysop. Look at username of the user with this id in user table.
- Use:
- php maintenance/changePassword.php --user=<username> --password=<new_password>
-
- where <new_password> must be at least 8 characters long, eg, admin123.
- Again uncomment $wgAuth lines in LocalSettings.php. Note that for local login select "Your domain" as local
Debugging login issues
- For debugging add:
- $wgShowExceptionDetails = True;
-
- at end of LocalSetting.php file to get more details
<yambe:breadcrumb>Mediawiki_configuration|Mediawiki configuration</yambe:breadcrumb>