|
Copyright (C) 2001-2007 (yawiki.org) 3467119 Inc. All rights are Reserved. Yawiki (Yet Another Wiki) is a wiki system designed to run on various computing platforms including Windows, Linux & Solaris. Because of its architecture, it should run on various platforms that support Java and J2EE.
Installation Installing a Basic Configuration: Before you do anything make sure you have the latest JVM. We recommend Sun Microsystem's JVM. You can get that here. You should consider getting 1.6+. Database Recommended is postgres. You can find this database here. Download and install the application. Note Your database name must be yawiki. You will need to use the approperiate driver. If you are using postgres (Recommended) this is a file called postgresql-8.1-407.jdb c2.j ar. If you are using Oracle, the file would / might be something called ojdbc14.jar. The same would apply to other databases. Inside your database, you would create the approperiate tables: CREATE DATABASE yawiki WITH encoding 'UTF8'; CREATE TABLE yawiki_resource ( hash int4, indx int4, meta varchar(256), title varchar(256), data varchar(65000), version int8 ); CREATE TABLE yawiki_resource_vc ( hash int4, indx int4, meta varchar(256), title varchar(256), data varchar(65000), version int8 ); CREATE TABLE yawiki_save ( title varchar(256), version int8, ip varchar(256), who varchar(256), timestamp varchar(256) ); CREATE TABLE yawiki_users ( userid varchar(256), password varchar(256), meta varchar(256), role varchar(256), last_login timestamp ); CREATE TABLE yawiki_permissions ( title varchar(64), usergroup varchar(64), mod varchar(64)); And the approperiate indices: CREATE INDEX yat_index ON yawiki_resource (title); CREATE INDEX uid_index ON yawiki_users (userid); The above code has been tested and works with postgres, if you are using Oracle, we recommend the scripts below: CREATE DATABASE yawiki WITH encoding 'UTF8'; CREATE TABLE yawiki_resource ( hash int4, indx int4, meta varchar(256), title varchar(256), data varchar(65000), version int8 ); CREATE TABLE yawiki_resource_vc ( hash int4, indx int4, meta varchar(256), title varchar(256), data varchar(65000), version int8 ); CREATE TABLE yawiki_save ( title varchar(256), version int8, ip varchar(256), who varchar(256), timestamp varchar(256) ); CREATE TABLE yawiki_users ( userid varchar(256), password varchar(256), meta varchar(256), role varchar(256), last_login timestamp ); CREATE TABLE yawiki_permissions ( title varchar(64), usergroup varchar(64), mod varchar(64)); CREATE INDEX yat_index ON yawiki_resource (title); CREATE INDEX uid_index ON yawiki_users (userid); Please add one page for the purpose of testing. INSERT INTO yawiki_resource VALUES (0, 0, 'meta data here', 'HelloYawiki', 'This is my first page', 0); Please create a file called list.images and add some data. The file shall contain data in the following format: < image name="Image:Yawiki.jpg" path="./img-data/path_to_/Yawiki.jpg" > An example of this file is here Once everything is setup, you should be able to run it at the following URL http://localhost/proc/HelloYawiki Configuration File Inside messages.properties, you would specify the approperiate driver: An example of a postgres configuration on windows is below: Yawiki.driver=org.postgresql.Driver Yawiki.connection=jdbc:postgresql:yawiki Yawiki.userid=postgres Yawiki.password=XXXXXX Yawiki.log=yawiki.log Yawiki.repository=C:list.images Globals.domain=xxxx.org Globals.base=xxxx.org Globals.context=/proc/ Globals.editor=http://www.xxxx.org/editor Globals.templates=C: emplate Globals.logo=http://www.xxxx.org/files/mmmlogo.jpg Globals.signedJar=http://www.xxxx.org/editor/signed.jar Globals.icon=http://www.xxxx.org/files/icon.jpg Globals.14=Welcome.html Globals.15=Interesting article about Yawiki:INSTALL by yet another wiki - The Free Java Powered encyclopedia Globals.16=reference Yawiki:INSTALL, read Yawiki:INSTALL, find Yawiki:INSTALL, related Yawiki:INSTALL, identical Yawiki:INSTALL, yawiki wiki Yawiki:INSTALL, article information Yawiki:INSTALL Globals.author=xxxx.org Globals.copyright=xxxx.org Globals.header=text/html; charset=utf-8 An oracle configuration on linux might look like this: Yawiki.driver=weblogic.jdbc.oracle.OracleDriver Yawiki.connection=jdbc:bea:oracle://yawiki Yawiki.userid=postgres Yawiki.password=XXXXXX Yawiki.log=yawiki.log Yawiki.repository=/var/yawiki/repository/list.images Globals.domain=xxxx.org Globals.base=xxxx.org Globals.context=/proc/ Globals.editor=http://www.xxxx.org/editor Globals.templates=/var/yawiki/templates/ Globals.logo=http://www.xxxx.org/files/mmmlogo.jpg Globals.signedJar=http://www.xxxx.org/editor/signed.jar Globals.icon=http://www.xxxx.org/files/icon.jpg Globals.14=Welcome.html Globals.15=Interesting article about Yawiki:INSTALL by yet another wiki - The Free Java Powered encyclopedia Globals.16=reference Yawiki:INSTALL, read Yawiki:INSTALL, find Yawiki:INSTALL, related Yawiki:INSTALL, identical Yawiki:INSTALL, yawiki wiki Yawiki:INSTALL, article information Yawiki:INSTALL Globals.author=xxxx.org Globals.copyright=xxxx.org Globals.header=text/html; charset=utf-8 Directory Layout You will need to make sure that Yawiki has rights to A) Write a log file, and then (if enabled) B) write to the repository. It will also need read access from the template directory. Below is a diagram of what a typical installation might look like: /TOMCAT /Yawiki/ Templates For information on working with templates, please see our online documentation at: Yawiki:Working_with_templates Syntax For information on yawiki syntax, please see our online documentation at: Yawiki:Syntax Welcome and Enjoy, from the Yawiki Team yawiki.org 3467119 Inc. http://www.yawiki.org |
| |||||||
|
| |||||||||
![]() |
|
| |