Locked out of DokuWiki on localhost

1

I set up DokuWiki on localhost just to collect some notes.

Alas, I am locked out, can't remmember my password and sending a recovery email doesn't work.

Since I will only use this locally, I need only one user, with admin rights, and no password checking. Can that be done by manually editting the config files?

Mawg says reinstate Monica

Posted 2019-09-15T12:21:53.700

Reputation: 2 744

1

Perhaps this DokuWiki forum link may help.

– Anaksunaman – 2019-09-15T18:43:39.590

Thnaks, I had already found it, but it didn't help me. Rereading it, I find that the answer by dude does work! Please post this as an answer, and I wil accept it. – Mawg says reinstate Monica – 2019-09-16T07:10:42.330

Answers

1

According to this DokuWiki forum thread, you should be able to reset the password to DokuWiki by changing users.auth.php.

For the current stable version of DokuWiki (2018-04-22b "Greebo"), this file is located under the conf folder.

To reset the password, replace any existing admin login with:

admin:$1$4fd0ad31$.cId7p1uxI4a.RcrH81On0:DokuWiki Administrator:mail@host.com:admin,user 

Then log in with the username admin and password admin.

Anaksunaman

Posted 2019-09-15T12:21:53.700

Reputation: 9 278

You saved my bacon (and eggs) – Mawg says reinstate Monica – 2019-09-16T12:05:19.407

1Glad to help. =) – Anaksunaman – 2019-09-16T19:17:27.723