File:  [NetBSD Developer Wiki] / wikisrc / wiki / todo / set_up_demo_wiki.mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Wed Nov 11 09:59:30 2009 UTC (5 years, 8 months ago) by wiki
Branches: MAIN
CVS tags: HEAD
web commit by schmonz: update for rename of users/schmonz/todo/implement_CVS_backend.mdwn to wiki/todo/implement_CVS_backend.mdwn

Having [[implemented CVS support|wiki/todo/Implement_CVS_backend]], we need a test wiki instance in order to evaluate its merits.

[[spz]] provided a running system suitable for testing, on which the following was done:

* installed the necessary pkgsrc bits:
 * `www/apache22`
 * `www/ikiwiki` (with the `ikiwiki-search` option and CVS-related `LOCALPATCHES`)
 * `www/cvsweb`
 * `devel/cvsps`
* created a `wiki` user
* created `~/etc/htpasswd`
* created `~/etc/apache.conf` (restricting web editing to valid users in `~/etc/htpasswd`) and included it from the system's `httpd.conf`
* made a copy of `cvsweb` into `~/cgi/cvsweb` and pointed it at `~/etc/cvsweb.conf`
* placed the CVS plugin (not yet included in ikiwiki) in `~/perl/IkiWiki/Plugin/`
* created `~/src and ~/html` directories
* ran `ikiwiki-makerepo cvs ~/src ~/cvsroot` to import `~/src` into a new repository and configure the ikiwiki post-commit hook
* ran `ikiwiki ~/src ~/html --libdir ~/perl --url= --dumpsetup ~/etc/ikiwiki.conf` to create a config file
* tweaked `~/wiki/etc/ikiwiki.conf` considerably (for exact changes, `diff -u ~/etc/ikiwiki.conf{.default,}`):
 * added useful plugins, including the CVS plugin
 * disabled Discussion subpages
 * enabled userdir
 * enabled RSS/Atom feed generation
 * locked the included ikiwiki documentation against web editing
* ran `ikiwiki --setup ~/etc/ikiwiki.conf` to generate pages and the CGI and post-commit wrappers
* copied `cvsweb.css`, the `favicon.ico`, and a downloaded stylesheet into `~/src`, `cvs add`ed them (with `-kb` for the icon) and `cvs commit`ed to test that the post-commit hook regenerates the site 
* started Apache
* added a cron job for ikiwiki's feed aggregator

[[todo/done]] --[[schmonz]]

CVSweb for NetBSD wikisrc <> software: FreeBSD-CVSweb