DokuWiki on a Stick

To run DokuWiki, a web server with PHP is needed.

Most Windows users are not very comfortable with installing and configuring a web server, even though there are quite simple solutions available already.

DokuWiki on a Stick

Wouldn't it be nice if you could just start an .exe file and have your wiki up and running? Wouldn't it be even cooler if this would work without any complicated install at all? And wouldn't it be really cool if all this could work from an USB flash drive to make your wiki portable between different PCs?

Well, that just happened :-). I hereby present “DokuWiki on a Stick”.

Just download the Zip file, extract it and follow the instructions given in the README.txt. It basically boils down to running the mapache.exe and pointing your Browser to http://localhost:8800/.

All data is kept inside the the DokuWikiStick directory and takes about 10MB.

The whole thing works through the excellent MicroApache distribution which is a stripped down Apache 2.0 with a stripped down PHP 4.4.7. All I had to do was some config tweaking and adding the GDlib for PHP.

Update: A new release is available.

Tags:
dokuwiki,
usb,
stick,
microapache
Similar posts:

 
Posted on Saturday December the 1st, 2007 (7 months ago).

Comments

1
This is great!

I (easily) updated it to PHP 5 with these files;
 php5apache2.dll
 php5ts.dll
 php_gd2.dll
and optionally :)
 php_pdo.dll
 php_pdo_sqlite.dll
And this change to httpd.conf;
 LoadModule php5_module "php5apache2.dll"

(Sorry for posting this info here but microapache has no comments or forum...)

Cheers from Sunny Australia.
2007-12-03 01:11:45
nick gregory
2
Very Cool.  I'm going to combine that with a quick autorun (U3 usb stick) that triggers a script to synchronize with my dokuwiki...make it part quick backup and part mobile dokuwiki for when I'm somewhere with no network connection.

Cheers from not-so-sunny-too-cold Canada.
:)
2007-12-03 01:46:56
DLane Reiswig
3
Yeah for Portable DokuWiki.

This is much better than using DokuWiki with XAMPP.  The PHP 5 instruction work great.  You get even add eAccelerator for a lean, mean, wiki machine.
What files / directories do you look for when synchronize two wiki?

Now if I could only get the WYSIWYG editor to work nicely with DokuWiki, I can drop the extra hassle doing OpenOffice/Word macro to DokuWiki.
2007-12-05 18:46:31
WikiUser
4
Wow, DokuWiki read my mind... could it be psychic too?
2007-12-09 06:30:55
slillig
5
Great to hear someone has found MicroApache useful. I developed it for my own use and it does it's job and I don't really have a huge amount of time for extra research. I can put on a DVD ROM of software on a client's site and install software from anywhere in the office!. I have looked a few times at PHP5 in the past year or 2 but it wasn't ready yet so I stuck with PHP4 for new releases. Also, no one has fed back any testing info re: PHP 4 or 5. It looks like PHP5 may be worth revisiting so if contributors here are confirming it works without major code bugs I will add/rebuild a new release with PHP5 already bundled-in. I do recall that I had problems with some PHP4 code in PHP5. I will also add a link to your useful project. Regards - "MicroApache Maintainer"
2007-12-11 21:27:07
6
Hey nice one DLane.
Like to have the sync script too!
pls post it or link it.
2007-12-12 14:46:44
Harlekin Simplex
7
Checked out the DocuWiki release. Looks good. Note that you can compress php_gd2.dll to about 39% of it's original size using "UPX -9 *.dll" in the apache directory (800k to about 300k)
802816 ->    317952   39.60%    win32/pe     php_gd2.dll  ;)
2007-12-17 04:10:57
MicroApache Maintainer
8
Hey!

Wonderful piece!
I'm a DokuWiki user!
This was just missing from my huge toolbox!
Your tool can be agremented with a free script that can be written using my language ( FBSL )
Here it is :
DllDeclare Shell32.ShellExecute As ShellEx
Run( ".\mapache.exe", , FALSE )
ShellEx( NULL, "Open", "http://localhost:8800/";, "", "", 1 )

And then it'll work like a charm!
This code cans be compiled as well as spure stand alone executable!
Feel free to make an exe from this code and distribute it from your mega useful stick version!

Thanks again for your nice work!
2007-12-19 23:56:17
9
Thanks to DokuWiki and MicroApache for making this possible!

I just wanted to add that it also works in Linux under Wine (I'm using Ubuntu 7.10).  Wine has to be run as administrator - I run it with "sudo wine mapache.exe".  Also for some reason most images don't work (some .gifs do?).  I see "fixme:mswsock:TransmitFile not implemented" errors in the console, but otherwise it's usable - I don't know if that's a Wine error, Mapache error or what.
2008-01-02 01:53:45
Cecil_T
10
The error I described above appears to come from Wine...
2008-01-02 02:20:11
Cecil_T
11
“Dyslexics of the world untie”

I have tried (and failed) to get http://wiki.splitbrain.org/plu … spellcheck and Aspell to work with this great portable environment. Does installing to the USB stick allow PHP access to Aspell?

Can you spell it out a letter at a time?

Many Thanks
2008-01-08 02:30:20
M G
12
There are other parts of the MS Winsock lib not implemented in WINE also - search
http://www.google.com/search?q=fixme%3Amswsock
Note that AcceptEx isn't. Hence you need to ensure you use DisableAcceptEx Off in WINE (also recommended anyway in Win32). The Winsock TransmitFile() function looks like it is on the WINE "todo" list ;)
2008-01-26 15:36:24
13
Is there any way to change the working port from 8800?
I got an error, I think because our administator has only a few ports open and 8800 is not one of them
2008-02-06 13:03:10
Muz
14
Muz, the port is set in the conf/httpd.conf file - just change it.
2008-02-06 13:30:12
15
I changed the port a couple times to ports that appeared to be open (viewed using nirsofts currport utility). Each time the apache window appeared and then disappeared immediately. Only worked when set back to 8800. My proxy message that appeared was:

Error Code 10061: Connection refused
Background: The server you are attempting to access has refused the connection with the gateway. This usually results from trying to connect to a service that is inactive on the server.
I think it must be the firewall!
2008-02-07 05:08:34
Muz
16
2c = Re: Ports:
You may have accidentally changed to port 8080 which is a common proxy server port or as you say a FWR issue. Alternatives I'd recommend if port 80 is blocked by ISP are 88, 8880, 8888. No special reason for the 8s btw.
If you have a firewall/router yes, you will need to port-forward to the local IP on the new port.
Running Apache on alt. ports is covered well if you Google it.
2008-02-07 23:42:18
17
2p = New versions of MicroApache. 1.3.x (all) - appx 800kb with PHP 4.4.7. Also versions with SQLite. Might prove interesting to the docuwiki project as SQLite is microscopic but scales to about 2TB!
2008-02-07 23:44:18
18
Great idea !
Especially for beginners who wish to hawe a loook at DokuWiki.
But how do I install a plugin (indexmenu) or a theme (monobook) ?
Plugin management refuses that with error msg: "unable to download the plugin file...."
2008-02-09 14:33:09
Philip Hettel
19
Sorry for comment 0n 2008-02-09 14:33:09.
There is NO fault on application.
There was fault on user..
2008-02-13 19:15:03
Philip Hettel
20
I've been using Dokuwiki for personal documentation for the past year on a USB stick with Uniform Server. I just tried the microapache implementation and it works very well. I'm wondering if microapache has the Apache security modules compiled in so I can put this on a server and use a userid/password to control access? I'm not exactly sure about how to go about doing this but there's lots of online docs that should help.
2008-02-26 14:20:30
Tom Gee
21
Hi Folks,

Thanks a million to you guys for all the work ye have put into this, it is truely helpful. I was wondering if this is the best place to ask for any issues I am having. Like how do I check which version of MicroApache I have and upgrade it?

Dave
2008-02-26 15:42:57
David Cullen
22
To make launching easier, create a .cmd file in you dokuwikionastick directory and put this in it:
start .\mapache
start http://localhost:8800/

doubleclick and you are up and running.
2008-03-01 20:37:07
23
2c @Tom Gee
Yes, the MicroApache can be extended in precisely the same way as normal Apache. All of the configuration options are the same and you can add and load all *.SO or *.DLL modules compatible with each version such as mod_security. There are no special rules, just read the config/install notes of your particular add-on and place in the correct folders - e.g. ./modules or ./
Basic (or DBM etc.) authentication can be done via either the main httpd.conf file or via .htaccess files. You need to go to apache.org and read the docs ;)
2008-03-04 12:22:11
24
This is absolutely marvelous. Thank you for the hard work that made this avaiiable to us. Question: Is it possible to run this on an Apple? Put another way, if I fire up my built-in Apache server will Dokuwiki on a Stick work on my Apple? That would be truly wonderful if it would.
2008-04-20 20:44:50
Michael vB
25
Michael, this is for Windows only. I do not own a Mac (donations welcome ;-)) so I can't create a Mac version. If you like to use DokuWiki on your Apple computer you need to install it as described at http://wiki.splitbrain.org/wiki:install
2008-04-21 13:07:32
26
When I started MicroApache, I got this message: mapache.exe - ordinal number not found - unable to locate ordinal number 3879 at dynamic link library LIBEAY32.dll. Maybe the words differ slightly, I'm translating from portuguese. Any hints? Thanks a lot in advance.
2008-04-22 04:42:47
Cesar
27
Great work, unfortunately the filelist-plugin doesn't work. the filename isn't shown. any idea?
2008-04-23 13:50:53
Achim
28
Awesome!
Thanks for your work, I am moving all my personal documentation/notes over to this software!!
2008-04-24 00:32:54
Joe
29
Is there a version with the latest version of dokuwiki?
2008-04-27 16:38:27
30
Hi, is it possible to download a file from the DokuwikiOnStick (PDF etc.)? There es an error: 403 Forbidden "You don't have permission to access..."! Thx
2008-04-29 14:08:53
Miky
31
Hi
I use for my personal needs an even lighter solution wihout any problem (under windows)
I use NANWEB (a lightweight web server) + standard PHP 4.4.* package
All works nicely with littel hack on local config.
I'm a real HAPPY dokuwiki user. No need for other software for my documentation.
2008-05-10 09:48:56
Matteo
32
@Cesar. The MicroApache error you describe sounds like a problem with SSL and also sounds like a DLL version problem. You may need to update LIBEAY32.dll to a more recent version. The error means an expected library function which should be in that DLL isn't there. (referred to by number (ordinal) rather than by function name). If you are stuck get a copy of Dependency Walker (Depends.exe) free from http://www.dependencywalker.com/ then run mapache.exe using that and not any errors.
2008-05-15 01:41:59
33
Thank you for this. I do not use it often but it works perfectly  and I think that idea is great. IMHO very good way of thinking.
2008-05-21 14:00:12
Petrson
34
Hello sounds like  great usb solutions specially when you can load any program on your hard disk... Once i have created a page document how do I tell someone about it ? is there a format like http://www.pagename or ?


thanks for your suggestions !
2008-05-23 16:24:07
Patrick
CAPTCHA

No HTML allowed. URLs will be linked with nofollow attribute. Whitespace is preserved.

 
 

Blog

Older Weblog articles are available in the Archive, subscribe to the
Full Content RSS Feed
to stay tuned. (learn more)

Subscribe to the Feed

Recent Blog Entries

 

This is the personal web site of Andreas Gohr - human being, blogger and web geek from Berlin, Germany.

This page was last updated at 2008/05/16 22:14.
Imprint/Impressum

Elsewhere:


Recent readers: