<span style='color:blue'><span style='font-size:21pt;line-height:100%'>A-Installation de Daisy</span></span>
Configuration de Base***********************************************
Mandriva 2005LE
Apache 2.0xx avec Virtual Hosts
Java 1.5x
Tomcat 5.x
mod-jk 1.2x
Une seule machine (pas de dispatching sur plusieurs)
***********************************************
<span style='color:blue'>
Etape 1 - Création Databases & Users</span>
***********************************************
Allez en mode console sous root et faire ?mysql? ou à partir d?un outil tel que Mysql Query Browser (respecter strictement tous les caractères)
CREATE DATABASE daisyrepository
DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci
GRANT ALL ON daisyrepository.* TO daisy@'localhost' IDENTIFIED BY 'daisy'
CREATE DATABASE openjms
DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci
GRANT ALL ON openjms.* TO openjms@'localhost' IDENTIFIED BY 'openjms'
***********************************************
<span style='color:blue'>
Etape 2 - Download et tar pour mise ne place du répertoires</span>
***********************************************
Allez en mode console sous root sous «/usr/share/ »
Download « daisy-<version>.tar.gz?
tar xvzf daisy-<version>.tar.gz On obtient : /usr/share/daisy-<version>
Renomer en /usr/share/daisy
Mettre le chown si nécessaire « chown ?R root :root daisy » ou autre que root
***********************************************
<span style='color:blue'>Etape 3 - OpenJMS - configuration</span>***********************************************
1° paramètres d'environnement
--------------------------------
?DAISY_HOME /usr/share/daisy?
?OPENJMS_HOME /usr/share/daisy/openjms?
soit : (toujours en console sous root)
export DAISY_HOME=/usr/share/daisy
export OPENJMS_HOME=/usr/share/daisy/openjms
pour vérifier ..
echo $DAISY_HOME
echo $OPENJMS_HOME
2° configuration
--------------------------------
cd /usr/share/daisy/install = go directory <DAISY_HOME>/install
Lancer le script de configuration (en console sous root)
./daisy-openjms-config
(infos et Plusieurs questions sont posées)
Choose database = 1
Database driver class default = com.mysql.jdbc.Driver (accepter)
database driver location /usr/share/daisy/lib/mysql/jars/mysql-connector-java-xx .jar (accepter)
database url (enter) jdbc:mysql//localhost/openjms
database user default (enter) openjms
password (ce que vous voulez)
(information) met à jour les fichiers dans ../openjms/... /config/openjms.xml et /bin/setenv.sh cocoon.xconf
3° création tables dans la database openjms
--------------------------------
cd /usr/share/daisy/openjms/bin = go to directory <OPENJMS_HOME>/bin
Lancer le script de configuration (en console sous root)
./dbtool.sh -create -config $OPENJMS_HOME/config/openjms.xml
Dlog4j.configuration=$DAISY_HOME/misc/openjms-log4j.properties
J?obtiends une erreur :
> Erreur === "pooled connection" tente de se connecter comme daisy@mandrake ce qui veut dire que le host pris est non pas localhost mais mandrake, le hostname de la machine
> Solution - sous Webmin/servers/Mysql - Global Options / Host permissions - ajouter comme host 'mandrake'
On recommence
./dbtool.sh -create -config $OPENJMS_HOME/config/openjms.xml -Dlog4j.configuration=$DAISY_HOME/misc/openjms-log4j.properties
Successfully created tables
4° start OpenJMS:
--------------------------------
go directory <OPENJMS_HOME>/bin
./startup.sh
La session est donc utilisée
***********************************************
<span style='color:blue'>Etape 4 - Daisy Repository Server</span>***********************************************
1°) Ouvrir une nouvelle session shell
--------------------------------
export DAISY_HOME=/usr/share/daisy
2°) Install
--------------------------------
go directory <DAISY_HOME>/install
./daisy-repository-init
(infos et Plusieurs questions sont posées)
Database 1 mysql ((accepter))
driver class default = com.mysql.jdbc.Driver ((accepter))
database driver location /usr/share/daisy/lib/mysql/jars/mysql-connector-java-xx .jar ((accepter))
database url (enter) jdbc:mysql//localhost/daisyrepository
database user/passw = daisy/daisy ((accepter ou votre choix))
Enter initial Daisy user default = testuser/testuser ((accepter ou votre choix))
creation database
smtp = smtp.free.fr ((selon votre relais smtp))
from adress =
toto@free.fr (selon vos infos)
Daisy data directory location = /var/local/daisydata ((selon votre choix))
modifi fichiers cocoon.xconf (user/pass)
3° Start Daisy Repository Server
--------------------------------
go directory <DAISY_HOME>/repository-server/bin et execute daisy-repository-server
cd /usr/share/daisy/repository-server/bin
./daisy-repository-server /var/local/daisydata
starting Merlin 3.3.0 ...
***********************************************
<span style='color:blue'>
Etape 5 - Daisy Wiki</span>
***********************************************
Initialising the Daisy Wiki
--------------------------------
1°) Ouvrir nouvelle session shell
export DAISY_HOME=/usr/share/daisy
2° Install Daisy Wiki
--------------------------------
Go directory <DAISY_HOME>/install
execute: ./daisy-wiki-init
((Infos de config))
daisy repository listening <a href='http://localhost:9263' target='_blank'>http://localhost:9263</a> ((accepter ou votre choix))
testuser/testuser ((selon le choix ci-dessus))
creation guest user et role, registrar user et update cocoon.xconf
Acl par default role guest (read) et les autres (read/write)
2° Creating Daisy Wiki Site
-------------------------------
The Daisy Wiki has the concept of multiple sites, these are multiple views on top of the same repository. You need at least one site to do something useful with the Daisy Wiki, so we are now going to create one. Open a command prompt or shell and set an environment variable DAISY_HOME, pointing to the directory where Daisy is installed.
Go directory <DAISY_HOME>/install
execute: ./daisy-wiki-add-site
daisy repository server listening
htttp://localhost:9263testuser/testuser ((selon le choix ci-dessus))
Nom pour le site : wikitest (name collection, directory name) ((selon choix))
langage = default ((y compris pour mixte))
sites directory location = /usr/share/daisy/daisywiki/webapp/daisy/sites ((par défaut mais possible selon choix))
Créé Daisy Wiki new site = collection docs, navigation, home page, siteconf.xml
***********************************************
<span style='color:blue'>
Etape 6 - Mettre Tomcat/Apache à la place de Jetty</span>
***********************************************
Deux solutions ::
1° celle de simplement copier/déplacer DAISY_HOME/daisywiki
2° Utiliser les possiblités de Tomcat et du paramétrage de <host> <context> du fichier « server.xml » pour faire pointer un Host ou un sous répertoire d?un host sur DAISY_HOME/daisywiki
6-1° Solution - copier/déplacer DAISY_HOME/daisywiki
--------------------------------------------------------------
Deploying on Tomcat The Daisy webapp can be freely moved out of the DAISY_HOME/daisywiki directory and deployed on another servlet container. It has no external dependencies: it needs no other stuff from DAISY_HOME, nor does it need access to the daisy data directory. Here is how you can deploy Daisy on Tomcat (this was tried with Tomcat 5.0.28):
1°) copy Daisy's webapp (directory DAISY_HOME/daisywiki/webapp) to TOMCAT_HOME/webapps/cocoon (thus the webapp directory gets renamed to cocoon).
2°) Check recent versions of xerces and xalan are in the endosed library path of Tomcat, you can do this like this (in the Tomcat directory):
$ ls common/endorsed/
xercesImpl.jar xml-apis.jar
$ rm common/endorsed/*
$ cp webapps/cocoon/WEB-INF/lib/xercesImpl-<version>.jar common/endorsed/
$ cp webapps/cocoon/WEB-INF/lib/xml-apis.jar common/endorsed/
$ cp webapps/cocoon/WEB-INF/lib/xalan-<version>.jar common/endorsed/
Versions installées Mandriva 2005LE
xerces-j2-2.6.2-6jpp - /usr/share/java/xerces-j2.jar - 13/06/05
xalan-j2-2.6.0-3jpp - /usr/share/java/xalan-j2.jar - 27/05/05
3°) Lancer Tomcat et si ?autodeploy? vous trouverez l?application, sinon déployez
6-2° Solution ? server.xml de Tomcat pointe sur DAISY_HOME/daisywiki
--------------------------------------------------------------
Voir article Ici . <a href='http://www.apachefrance.com/Forums/index.php?showtopic=3584' target='_blank'>http://www.apachefrance.com/Forums/index.php?showtopic=3584</a>
***********************************************
<span style='color:blue'>
Etape 7 ? Process Start/Stop</span>
***********************************************
1°) Start OpenJMS
-----------------------------------
export DAISY_HOME=/usr/share/daisy
export OPENJMS_HOME=$DAISY_HOME/openjms
cd $DAISY_HOME/openjms/bin
./startup.sh
2) Start Daisy Repository Server
-----------------------------------
export DAISY_HOME=/usr/share/daisy
cd $DAISY_HOME/repository-server/bin
./daisy-repository-server /var/local/daisydata
3°) start Tomcat ou Jetty
-----------------------------------
Daisy requires an expanded webapp, not a war archive.
4°) <a href='http://localhost:8080/cocoon/daisy/' target='_blank'>http://localhost:8080/cocoon/daisy/</a>
-------------------------
ou sans :8080 si Apache/Tomcat ou autre si vous avez choisi un autre port
5) STOP
-----------------------------------
# Stop 1° - Daisy Wiki
# Stop 2° - Daisy Repository Server
kill process ...??
# Stop 3° - OpenJMS.
cd <OPENJMS_HOME>/bin
:./shutdown -u admin -p <your-password>