First, the script that is run to initialize qwiki (this script comes after initializing and starting an estraier DB, creating a Subversion repository, and creating/adding a Subversion post-commit hook script):
cat <<EOF | csi > ~ubuntu/logs/qwiki_init.log 2>&1
(use qwiki qwiki-install qwiki-svn)
;; the URI for the subversion repository from where a copy can be
;; checked out
(qwiki-repos-uri "file:///var/qwiki_data/svn_repo")
;; the path to where the checkout of the repository will be stored
(qwiki-source-path "/var/qwiki_data/svn_source")
;; the path used by the web server to serve wiki pages
(qwiki-web-path "/var/www/html")
;; install qwiki
(qwiki-install!)
NOTE: This script is run as root.
cat <<"EOF" | sudo tee /etc/init.d/spiffy
#! /usr/bin/csi -:a100 -s
(use spiffy qwiki qwiki-search qwiki-menu qwiki-svn)
;; If you don't want these extensions, remove them from this script
(search-install!)
(menu-install!)
(qwiki-source-path "/var/qwiki_data/svn_source")
(qwiki-css-file "/qwiki.css")
;; Ensure this is an absolute path, if you are using Chicken 4.1 or earlier
(root-path "/var/www/html/qwiki")
;; Pass all requests to non-existent files through qwiki:
(vhost-map `((".*" . ,(lambda (continue)
(parameterize ((handle-not-found qwiki-handler)
(handle-directory qwiki-handler)
(index-files '()))
(continue))))))
(start-server)
EOF
Finally, I run this last script by typing "sudo /etc/init.d/spiffy" and the web server starts up on port 8080 as expected, but I get a 500 error when attempting to access qwiki from a browser. Spiffy gives the following error: