1 Gruta Installation Guide
2 ========================
7 Install the Artemus and Grutatxt modules, available from:
9 http://triptico.com/software/artemus.html
10 http://triptico.com/software/grutatxt.html
12 If you want to use the DBI source driver, you'll need DBI and a
13 corresponding DBD, of course. SQLite is fine and probably what
18 $ perl Makefile.PL && make && su -c "make install"
20 Execute the `gruta-mksite' script as the user the web server daemon runs
21 as, for example `www-data' under Debian. Answer all the questions and
22 a suitable directory tree will be created. If you answer affirmatively
23 to the 'static urls' question, be sure to include the URL rewriting
24 instructions suitable to your webserver (see below).
26 Now your web server daemon should be instructed to use `g.cgi' (the
27 Gruta entry CGI program) as the directory index. Again, see below for
28 webserver configuration examples.
30 Point your browser to the URL. As it's the first time, an `admin' user
31 with a random password has been created and the program flow redirected
32 to the administration page. Select the `admin' user from the _Users_ section
35 Create some topics. New topics will appear in the top menu. Clicking on
36 them will allow you to create new stories. If you create a topic with the
37 topic id `info', the stories with ids `about' and `legal' will be magically
38 added to the top header. For the rest of your stories, create another topic.
39 One with id `main' will be OK.
41 Webserver Configuration examples
42 --------------------------------
50 # protect the 'var' subdirectory (the Gruta raw
51 # storage depot) from being served via web
60 # activate CGIs and set g.cgi as index
61 cgi.assign = ( ".cgi" => "" )
62 index-file.names = ( "g.cgi" )
64 # static URL rewriting instructions
66 "^/([0-9]+)\.html$" => "/?t=INDEX;offset=$1",
67 "^/([0-9]+)-([0-9]+)\.html$" => "/?t=SEARCH_BY_DATE;from=$1;to=$2",
68 "^/tag/(.+)\.html$" => "/?t=SEARCH_BY_TAG;tag=$1",
69 "^/tag/$" => "/?t=TAGS",
70 "^/top/$" => "/?t=TOP_TEN",
71 "^/(.+)/$" => "/?t=TOPIC;topic=$1",
72 "^/(.+)/index\.html$" => "/?t=TOPIC;topic=$1",
73 "^/(.+)/([0-9]+)\.html$" => "/?t=TOPIC;topic=$1;offset=$2",
74 "^/(.+)/(.+)\.html$" => "/?t=STORY;topic=$1;id=$2",
75 "^/rss\.xml$" => "/?t=RSS",
76 "^/sitemap\.xml$" => "/?t=SITEMAP",
77 "^/style\.css$" => "/?t=CSS"
81 Angel Ortega <angel@triptico.com>