User Tools

Site Tools


how-to-reset-doku-wiki-password-by-ssh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
how-to-reset-doku-wiki-password-by-ssh [2018/01/14 14:17]
textninja
how-to-reset-doku-wiki-password-by-ssh [2018/01/14 14:18] (current)
textninja
Line 3: Line 3:
   - First, open up an SSH session to your doku wiki host   - First, open up an SSH session to your doku wiki host
   - Navigate to your DokuWiki app's htdocs folder   - Navigate to your DokuWiki app's htdocs folder
-  - Open up an interactive php REPL with `php -a` +  - Open up an interactive php REPL with ''​php -a''​ 
-  - Once in the REPL, enter the following commands: \\ <​code>​require_once '​lib/​PassHash.class.php';​+  - Once in the REPL, enter the following commands: ​\\ \\ <​code>​require_once '​lib/​PassHash.class.php';​
 $ph = new PassHash(); $ph = new PassHash();
 echo $ph->​hash_smd5('​your password goes here'​);</​code>​ Note that the last command assumes your DokuWiki setup is using salted MD5 for password hashes, per its default behaviour. Depending on what's stored in the passcrypt setting in your main DokuWiki configuration file, however, you might need to use a different hashing function. echo $ph->​hash_smd5('​your password goes here'​);</​code>​ Note that the last command assumes your DokuWiki setup is using salted MD5 for password hashes, per its default behaviour. Depending on what's stored in the passcrypt setting in your main DokuWiki configuration file, however, you might need to use a different hashing function.
how-to-reset-doku-wiki-password-by-ssh.txt · Last modified: 2018/01/14 14:18 by textninja

Bitnami