This guide addresses how to add new users to Dokuwiki manually without existing administrator credentials nor access to the web administrator interface. This document was written for Fedora Linux 30, so the commands and paths below may differ for your distribution.
It'd take much to long to learn PHP and put a script together for this, so using a local Dokuwiki instance will have to do.
Now we need to enable authentication and add an administrator.
Authentication is enabled for the user 'admin'. Now we need to add that user.
That line will add the user 'admin' with the password 'admin' to both the 'admin' and 'user' groups. All that's left is to start the web server.
Dokuwiki should start and be accessible at http://localhost/dokuwiki/.
Generating new credentials is quite easy.
If all goes well, the new user will be created and stored on disk. You can confirm their details in the 'User List' section above.
The newly-created credentials will be stored as a single line of text within the configuration directory.
On the local wiki:
This is the credential line that you will need to transfer to the production wiki. Copy it, email it, write it down, encode into DTMF tones, send via smoke signal, whatever works.
On the production wiki:
The new user should now be able to log in to the production wiki with the username and password set in step 6 of the previous section.