grundyscribbling (
grundyscribbling) wrote2019-01-23 09:18 am
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Entry tags:
Wiki on a USB (or computer)
Before I get into the how, let's start with the motivation: why would anyone do this? The answer is that you want a wiki of your own that you don't necessarily want web-accessible. (Note that it is possible to set up a private web-based wiki, though I'm not clear on which wiki farms offer that option or if you'd have to have it hosted. It is also possible to set up a web-accessible wiki on your own computer if you're comfortable with that and your internet access allows.)
Web accessible wikis have the benefit of being accessible from anywhere you have internet, but a) you have to have internet and b) you may have security/privacy concerns about a web-based wiki. I wanted a wiki to keep track of all my writing and the notes/timelines/family trees/headcanon/etc that goes with it without having to keep scanning handwritten stuff. Having a searchable resource also sounded nice - basically, I want something like Tolkien Gateway but for my own stuff! But I didn't want it web-based, because I didn't want to have to worry about spam, hackers, or being able to access it from hotels in the middle of nowhere with lousy cell phone reception. (My job takes me some interesting places. And if you weren't already aware, avoid using devices or passwords you'd like to keep secure on hotel wifi. It. Is. NOT. secure.) I already travel with a USB drive for personal files/writing, so putting it on my USB seemed like the best route to go.
Once you've decided you want a wiki hosted either on your computer* or a USB stick, there are a couple ways to accomplish it. First, there are software options designed for single user personal wikis. I didn't go this route because as with traditional wikis, there are quite a few options out there, and I didn't want to put a lot of time into the selection process/test-driving which one would be right for me. Also, I'm not particularly intimidated by backend stuff (I went to Impressive Tech School, so it's axiomatic that I should be able to handle it.) If you don't opt for the purpose built single user software, you need to do two things. First, decide which of the many, many flavors of wiki is right for you. If you want to go more in depth than just 'what is most widely used', comparison sites can help- WikiMatrix in particular will do side by sides for ~80 wiki options. (They helpfully put some of the most popular ones near the top of the list of possibilities.) Second, make sure you can provide the required backend.
As far as selecting a wiki, I narrowed the field to DokuWiki and MediaWiki fairly quickly. They're both active projects, meaning they're supported/updated and also have active user communities should I run into any issue I can't figure out on my own. MediaWiki is also pretty widely used - it's what Wikia started out on before they forked into their own thing. (I believe TVTropes is or at least was another MediaWiki site, and Fanlore has a 'MediaWiki powered' logo.) If you've worked with a web based or fannish wiki before, chances are MediaWiki will feel familiar. It's got plenty of support, extensions, etc. So why did I waver? DokuWiki does file based storage, meaning no database (thus no SQL) necessary. I thought that might be easier to deal with.
Which brings us to the backend. You'll need a web server and PHP for pretty much any wiki option. MediaWiki also needs some form of SQL. There is a handy tool that solves all these problems - XAMPP. It's an easy to install, self contained package originally for developers who needed a sandbox. The name is an acronym:
X for cross-platform (Windows/Linux/MacOS)
A for Apache (that's the webserver)
M for MySQL/MariaDB (started out MySQL, changed to MariaDB in newer versions, but both do the same thing)
P for PHP
P for Perl.
It's not the quickest installer in the world, you'll have time to wander off for a cup of coffee/snack/whatever, but it's not a huge install. The full version is <350MB even for the MacOS, which for reasons unknown to me is apparently ~2x the size of the Windows or Linux installs - and gives you a console that lets you control when the various services are active. If, like me, you want to run it on a USB, there's a portable version of XAMPP designed for exactly that. I'd used XAMPP mobile before, so my only problem was finding where the portable version lived (not on the main XAMPP download page - you have to click on the little 'click here for other versions' that you might miss if you're not looking for it.)
Here's a screenshot of what XAMPP looks like installed and running:

Note that XAMPP will also tell you Bitnami has one-click installers for DokuWiki, MediaWiki, WordPress, Drupal, etc. YMMV on these, but I did not actually find them helpful for the wiki options - both one click installers hung for me and I ended up doing the install of the wikis manually. (No one panic, it's not as involved as it sounds.)
Once you have XAMPP installed and have the necessary modules started, download the install files for your chosen wiki. They will come zipped, so you'll need to extract the files to a 'web accessible' location - in practice, this means somewhere in XAMPP's htdocs directory. If you think you may want to use XAMPP for more than just this one thing - if you want to test drive multiple wiki options, for example, or if you think you might want to play with WordPress/Drupal/Joomla - you should probably create a directory just for the wiki. Open the setup/configuration page in your browser (the url will look something like localhost/wikidirectory/configure.php), set the options for how you want your wiki configured, click the button, and marvel at the fact that you have a brand new wiki of your very own. Of course, this wiki is also totally empty aside from any default page/formatting - if you've never started a wiki before, you've never seen a wiki so empty. So there will now be some setup work to do as you start entering information, decide how to organize your new wiki, etc.
I did the setup process for both DokuWiki and MediaWiki. Aside from finding the Bitnami one-click installers unhelpful, the only minor hiccup was the setup of MediaWiki - for some reason, the configure page was unable to create the database for the wiki automatically, so I had to do that part manually from XAMPP dashboard. (It wasn't terrible or painful, just kind of puzzling in a 'why won't you work?' way. Went to the dashboard, got to the databases page, clicked 'new' and gave the database a name, then went back to the configure page and typed the same name in. Then everything worked. There are several quirks about my computer setup that could have potentially caused this hiccup, so I don't anticipate this would happen for most people.) Now that I've tried both out, I'm strongly leaning toward moving forward with MediaWiki. I like the look of it better, there are far more extensions for it, and the format is what I'm used to working with from other wikis. I want to get up and running as quickly as possible, so I'd rather not put time into a learning curve on DokuWiki.
Obviously there will be some time/effort before I hit the payoff/full potential of the wiki, but I'm pretty confident it will make life simpler. In the short term, scanning all my notes and have them accessible as media files in the wiki will be a stopgap, but the goal is to move to it all being properly organized and searchable. I'll probably base some of my templates on ones I've seen/found useful on TolkienGateway or Wikia.
If there are any questions, fire away in the comments.
*It's possible you could set a wiki up on other devices, but I don't want to make overconfident statements about what you can install this on.
no subject
no subject
no subject
Do you know or think it would work to use a Wiki on an USB stick in this way?
no subject
(Also, sorry about the delayed response - I thought I posted this yesterday, yet when I took my morning breakfast break, there it was still sitting unposted. *headdesk*)
no subject
no subject
no subject
And it's not something I expect you to take more time out of your day to rectify! My ignorance is my problem to fix.
no subject
no subject
no subject
no subject