Daisy documentation
 PreviousHomeNext 
9.16 Running parallel daisy instancesBook Index10 Contributor/Committer tips

9.16.2 Wiki

Again this is pretty much the same as the basic installation.

9.16.2.1 Initialize the wiki

Go to <DAISYHOME>/install and run

daisy-wiki-init

On the first question you will be asked to specify the repository.  Here you can answer 'http://localhost:9563'.  For the following questions on user and passowrd just use 'testuser' as username  and password if you followed the defaults in the repository initialization that is.

9.16.2.2 Create the wiki data directory

9.16.2.2.1 Data directory initialization

Execute the following script

daisy-wikidata-init

When you are asked for a location of the data directory you might want to choose

/home/<daisyuser>/wikidata-alt

Next you will be prompted for the repository url again, answer 'http://localhost:9563'.  For the following questions on user and password just use 'testuser' as username  and password if you followed the defaults in the repository initialization that is.

Now you are asked for the repository data directory.  In our example that is

/home/<daisyuser>/daisydata-alt
9.16.2.2.2 Wiki customization

Open de daisy.xconf file which is found in

/home/<daisyuser>/wikidata-alt/daisy.xconf

Now make the following changes :

Now it is time to change the wiki port.   First copy the jetty configuration to the data directory.

cp <DAISYHOME>/daisywiki/conf/jetty-daisywiki.xml /home/<daisyuser>/wikidata-alt

Open the jetty-daisywiki.xml file and change the port number.  Look for 'jetty.port' and change the value from '8888' to '8588'.

9.16.2.2.3 Create a site

Go to the directory <DAISY_HOME>/install, and execute:

daisy-wiki-add-site /home/<daisyuser>/wikidata-alt

First of all you will be prompted for the repository url again, answer 'http://localhost:9563'.  For the following questions on user and password just use 'testuser' as username  and password if you followed the defaults in the repository initialization that is.
Next you will be asked for a site name.  You can answer 'alt-site' or something else if you please.

9.16.2.2.4 Running the wiki

If you plan on running the wiki using the startup scripts found in
<DAISYHOME>/daisywiki/bin/ 
Then you might run into some problems concerning temorary files.  A workaround can be to copy the startup script and specify a different temporary directory. 
First create a temporary directory.  /var/tmp/alt for example

mkdir /var/tmp/alt

Create a new startup script

cp daisy-wiki <other-location>/daisy-wiki-alt

and change this line in the script

$JAVA_HOME/bin/java -Xmx128m -Djava.endorsed.dirs=$DAISYWIKI_HOME/endorsedlibs/ -Ddaisywiki.home=$DAISYWIKI_HOME -Dorg.mortbay.util.URI.charse
t=UTF-8 -Dfile.encoding=UTF-8 -Duser.language=en -Duser.country=US -Duser.variant= -Ddaisywiki.data=$DAISYWIKI_DATA -Djava.awt.headless=true -
jar start.jar $CONFFILE

to

$JAVA_HOME/bin/java -Xmx128m -Djava.io.tmpdir=/var/tmp/alt -Djava.endorsed.dirs=$DAISYWIKI_HOME/endorsedlibs/ -Ddaisywiki.home=$DAISYWIKI_HOME -Dorg.mortbay.util.URI.charse
t=UTF-8 -Dfile.encoding=UTF-8 -Duser.language=en -Duser.country=US -Duser.variant= -Ddaisywiki.data=$DAISYWIKI_DATA -Djava.awt.headless=true -
jar start.jar $CONFFILE

Start the wiki

daisy-wiki-alt  /home/<daisyuser>/wikidata-alt

Now everything should be up and running.  Go to http://<server>:8588/daisy/ and look at your new daisy instance.

 PreviousHomeNext 
9.16 Running parallel daisy instances10 Contributor/Committer tips