Nanostick: A Portable Nanoweb Server
April 7th, 2008 • General
Nanoweb is a Web server written entirely in PHP. Of course it’s not the kind of server you’d use with YouTube’s traffic, but it’s great for personal use, especially that it only needs a copy of PHP to run.
I needed a portable Dokuwiki that I carry around on my USB stick. Not only carry-in-key-chain portable, but also cross-platform platform portable. Mac OS and most Linuxes come with PHP installed, so I can run my pocket wiki without fiddling with configuration files. The Windows version on the other hand, needs to include PHP and some extensions, which amount to about 5MB extra.
The details are explained in the README file which you’ll find in Nanostick’s package. Nanostick by itself only weighs 250KB; adding PHP and compressing it leaves us with 2.5MB.
Version 0.0.1 includes a copy of PHP 5.2.5 for convenience only. Any subsequent version will not have PHP included.
Let me know if you face any trouble with it, or if there’s anything I can do to improve it.