version 1.1, 2014/01/11 01:26:26
|
version 1.7, 2019/05/04 10:44:10
|
Line 1
|
Line 1
|
[[!meta title="Previwing NetBSD Wiki with template"]] |
[[!meta title="Previewing NetBSD Wiki with template"]] |
|
|
Some template requires ikiwiki cgi mode. |
Some template requires ikiwiki cgi mode. |
If you setup ikiwiki with cgi mode, you can ignore cgi part of ikiwiki |
If you setup ikiwiki with cgi mode, you can ignore cgi part of ikiwiki |
Line 18 Assuming that your wikisrc tree is in /u
|
Line 18 Assuming that your wikisrc tree is in /u
|
|
|
|
|
# Setting up ikiwiki with cgi mode |
# Setting up ikiwiki with cgi mode |
Use page.tmpl requires cgi support (it has HAVE_ACTIONS conditionals) |
page.tmpl requires cgi support (it has HAVE_ACTIONS conditionals) |
|
|
## Prepare destination directory |
## Prepare destination directory |
$ mkdir ~/public_html |
$ mkdir ~/public_html |
Line 26 Use page.tmpl requires cgi support (it h
|
Line 26 Use page.tmpl requires cgi support (it h
|
## Build html files |
## Build html files |
$ ikiwiki --verbose /usr/cvs/wikisrc ~/public_html/wikisrc \ |
$ ikiwiki --verbose /usr/cvs/wikisrc ~/public_html/wikisrc \ |
--url=http://localhost/~user-user-name/wikisrc \ |
--url=http://localhost/~user-user-name/wikisrc \ |
--cgiurl http://localhost/~your-user-name/wikisrc/ikiwiki.cgi |
--cgiurl http://localhost/~your-user-name/wikisrc/ikiwiki.cgi \ |
|
--plugin goodstuff --plugin websetup |
|
|
## Dump setup file for shorter commandline |
## Dump setup file for shorter commandline |
$ ikiwiki --verbose /usr/cvs/wikisrc ~/public_html/wikisrc \ |
$ ikiwiki --verbose /usr/cvs/wikisrc ~/public_html/wikisrc \ |
--url=http://localhost/~your-user-name/wikisrc --cgiurl \ |
--url=http://localhost/~your-user-name/wikisrc --cgiurl \ |
http://localhost/~your-user-name/wikisrc/ikiwiki.cgi \ |
http://localhost/~your-user-name/wikisrc/ikiwiki.cgi \ |
|
--plugin goodstuff --plugin websetup \ |
--dumpsetup ~/wikisrc.setup |
--dumpsetup ~/wikisrc.setup |
|
|
|
Please note that `wikisrc.setup` configuration file will be reused |
|
to refresh and rebuild the wiki in the next sections with a shorter |
|
commandline. |
|
|
|
# Setting up bozohttpd webserver |
|
Put the following line to your /etc/inetd.conf. |
|
This line enables per-user directories. |
|
|
|
http stream tcp nowait:600 _httpd /usr/libexec/httpd httpd -u /var/www |
|
|
|
Additionally, if you have disabled inetd, please enable it. |
|
|
|
$ vi /etc/rc.conf |
|
|
|
and put |
|
|
|
inetd=YES |
|
|
|
to it. |
|
|
# Previewing wikisrc |
# Previewing wikisrc |
Open http://localhost/~your-user-name/wikisrc in your web browser. |
Open http://localhost/~your-user-name/wikisrc in your web browser. |