Enabling 2FA in DokuWiki

I’ve been doing a bit of a personal security audit lately, and updating/resetting passwords and adding 2FA wherever I can. One of the things I was pleasantly surprised to see is that DokuWiki made it fairly straightforward to add 2FA to my wiki.

The work to enable this was done by plugin developer Michael Wilmes, and involved installing a number of plugins that Wilmes developed.

  1. First, using the DokuWiki extension manager, install the Attribute plugin.
  2. Next, install the Two Factor Authentication – Core Plugin. As the title suggests, this installs a 2FA framework within DokuWiki.
  3. Finally, install any of the five 2FA modules. There are ones for email, an alternate email, Google Authenticator, and SMS.

I was only interested in the Google Authenticator plugin module. After installing it, it worked like a charm. My login page now looks like this, and will not let me login without the 2FA code:

DokuWiki 2FA-enabled Login Page
DokuWiki 2FA-enabled Login Page

Easy Method to Get DokuWiki Page Count and Other Stats

I’ve been using Dokuwiki for the last 7 years to host my own Wiki install, and absolutely love everything about it.

Recently I was wanted to get some statistical information such as total number of pages on my wiki, total file size, etc. Yes, I could get this information manually by taking a look at the files on my server, but thankfully DokuWiki has a plugin it ships with called Popularity Feedback that already does this.

The Popularity Feedback plugin is designed to send anonymized information back to the Dokuwiki devs about how people are using the software, though users can opt out of that fairly easily. So to get detailed statistical information about DokuWiki install:

  1. Go to the Admin area
  2. Click on the Popularity Feedback link
  3. Wait as Dokuwiki compiles the information
  4. ????
  5. Profit

And you’ll get output like this:

page_count 5,164
page_size 426,725,592
page_avg 82,634
media_count 12,616
media_size 1,093,809,420
media_avg 86,700
cache_count 85,498
cache_size 4,018,781,628
cache_avg 47,004

Nice.

Andreas Gohr on the State of the DokuWiki Community

I am a huge fan of DokuWiki, the open source Wiki software developed by Andreas Gohr and others, and have multiple installations of the software on my webserver. Gohr recently posted on his blog about the current status of DokuWiki which can be summarized as: too much stuff is dependent on Gohr.

Gohr’s been trying to do more to foster a larger DokuWiki community around the software and has a fair list of things he’s been trying to do over the past few months both to technical and non-technical to create more diversity in the DokuWiki community.

Personally, I promote DokuWiki at every con and other geek-oriented event I manage to make it to, and suggesting the software to folks looking for an easy-to-install but still full-featured Wiki.

New Version of DokuWiki Out

A new version of DokuWiki — DokuWiki 2009-12-14 — was released over the weekend, mainly fixing a bunch of smaller bugs and adding some small performance improvements, including:

  • Flash Multiuploader
  • license selector
  • compatibility fixes with Flash Player 10
  • internal changes to make farming easier
  • removed old upgrade plugins
  • better support for non-default auth backends in ACL manager
  • jump to edited session after saving
  • much improved Japanese romanization
  • improved XMLRPC interface
  • improved search result display
  • many smaller feature enhancements
  • more plugin events
  • some performance optimizations
  • minor security enhancements
  • many, many bug fixes

I had no problem following the upgrade instructions and took about 10 minutes to upload all the files and have the new version up and running. As always, DokuWiki continues to impress as one of the most straightforward, easiest-to-install and use pieces of software I’ve ever used.

DokuWiki Plugins and Upcoming Release

As DokuWiki heads for a new release, developer Andreas Gohr recently posted about 4 new/updated plugins for DokuWiki, including a Disqus plugin and a bug fix for the S5 presentation plugin. It’s amazing how much flexibility DokuWiki provides in what is easily the most straighforward piece of open source software I’ve installed/used on my server.