| 1 |
= FAST START |
|---|
| 2 |
|
|---|
| 3 |
Basically just do these commands: |
|---|
| 4 |
|
|---|
| 5 |
> svn checkout http://svn.kwiki.org/kwiki/trunk /usr/local/kwiki |
|---|
| 6 |
> export PATH=/usr/local/kwiki/bin:$PATH |
|---|
| 7 |
> kwiki -new /path/to/cgi/kwiki-01 |
|---|
| 8 |
|
|---|
| 9 |
If you want to use the builtin web server: |
|---|
| 10 |
|
|---|
| 11 |
> kwiki -start /path/to/cgi/kwiki-01 --port=8080 |
|---|
| 12 |
|
|---|
| 13 |
Point your browser at the new Kwiki: |
|---|
| 14 |
|
|---|
| 15 |
> open http://localhost:8080/index.cgi |
|---|
| 16 |
|
|---|
| 17 |
= INSTALLATION DETAILS |
|---|
| 18 |
|
|---|
| 19 |
Kwiki is incredibly easy to set up. Kwiki bundles everything you need to |
|---|
| 20 |
get up and running including an optional standalone web server. All you |
|---|
| 21 |
need is a Unix environment with Perl of version 5.8.3 or higher. |
|---|
| 22 |
|
|---|
| 23 |
Ready? You only need to do a few simple steps: |
|---|
| 24 |
|
|---|
| 25 |
1) Get the Kwiki software. |
|---|
| 26 |
|
|---|
| 27 |
Odds are, that since you are reading this, you already have done this |
|---|
| 28 |
step. If not, you can get the software using one of these methods: |
|---|
| 29 |
|
|---|
| 30 |
A) svn checkout http://svn.kwiki.org/kwiki/trunk /usr/local/kwiki |
|---|
| 31 |
|
|---|
| 32 |
This is the preferred way to get the sources, since it makes |
|---|
| 33 |
getting updates as easy as `svn update`. |
|---|
| 34 |
|
|---|
| 35 |
B) svk checkout http://svn.kwiki.org/kwiki/trunk /usr/local/kwiki |
|---|
| 36 |
|
|---|
| 37 |
SVK is even better than SVN, but takes a little bit more time to |
|---|
| 38 |
get used to. It is the Hacker's Choice for version control. |
|---|
| 39 |
|
|---|
| 40 |
C) Download the latest Kwiki tarball from |
|---|
| 41 |
http://downloads.kwiki.org/ and untar it. |
|---|
| 42 |
|
|---|
| 43 |
Kwiki does not have an install procedure. Once you have the software, it |
|---|
| 44 |
is "installed". Just put it some nice, safe place like `/usr/local/kwiki`. |
|---|
| 45 |
|
|---|
| 46 |
2) Put the `kwiki` command line utility in your PATH. |
|---|
| 47 |
|
|---|
| 48 |
At the top level of your new Kwiki software is a directory called `bin` |
|---|
| 49 |
which contains the command line utility called `kwiki`. This utility is |
|---|
| 50 |
needed for managing the Kwiki software. |
|---|
| 51 |
|
|---|
| 52 |
You should put this `bin` directory in your PATH environment setting. Use a |
|---|
| 53 |
command like this in your login script: |
|---|
| 54 |
|
|---|
| 55 |
export PATH=/usr/local/kwiki/bin:$PATH |
|---|
| 56 |
|
|---|
| 57 |
Now you can run `kwiki` commands in your shell. |
|---|
| 58 |
|
|---|
| 59 |
NOTE: If you have already installed an older version of Kwiki, you may |
|---|
| 60 |
already have a `kwiki` script in your PATH. It is important that |
|---|
| 61 |
you put the new script in front of the older one in your PATH. Do |
|---|
| 62 |
a `which kwiki` command to make sure things are set up properly. |
|---|
| 63 |
|
|---|
| 64 |
3) Create a new wiki with `kwiki -new`. |
|---|
| 65 |
|
|---|
| 66 |
This command installs a Kwiki instance, which is a running wiki website. |
|---|
| 67 |
You can either create a new directory, or specify the directory name in |
|---|
| 68 |
the command. |
|---|
| 69 |
|
|---|
| 70 |
cd /path/to/cgi/ |
|---|
| 71 |
mkdir kwiki-01 |
|---|
| 72 |
cd kwiki-01 |
|---|
| 73 |
kwiki -new |
|---|
| 74 |
|
|---|
| 75 |
or (more simply): |
|---|
| 76 |
|
|---|
| 77 |
kwiki -new /path/to/cgi/kwiki-01 |
|---|
| 78 |
|
|---|
| 79 |
4) Start a web server with `kwiki -start`. |
|---|
| 80 |
|
|---|
| 81 |
Kwiki comes with its own lightweight web server. To start running your new |
|---|
| 82 |
Kwiki instance, go into its directory and run `kwiki -start`. Or optionally |
|---|
| 83 |
specify the directory on the command: |
|---|
| 84 |
|
|---|
| 85 |
kwiki -start /path/to/cgi/kwiki-01 --port=8080 |
|---|
| 86 |
|
|---|
| 87 |
This is the easy way to get going, but for a real wiki on the Web, |
|---|
| 88 |
you'll probably want to use a "real" web server. In this case, just make |
|---|
| 89 |
sure your web server is running and knows about your Kwiki. |
|---|
| 90 |
|
|---|
| 91 |
You can use any CGI enabled web server to run Kwiki. Apache and Lighttpd |
|---|
| 92 |
are popular choices. Just put your new Kwiki instance directory in a |
|---|
| 93 |
place where the web server expects to have Perl CGI programs. This may |
|---|
| 94 |
or may not require configuration changes to your web server. |
|---|
| 95 |
|
|---|
| 96 |
5) You are done!!! |
|---|
| 97 |
|
|---|
| 98 |
Well at least you got a Kwiki up and running. :-) See the next section |
|---|
| 99 |
for advice on configuring and maintaining your new Kwiki. |
|---|
| 100 |
|
|---|
| 101 |
= KWIKI CONFIGURATION |
|---|
| 102 |
|
|---|
| 103 |
... |
|---|