Taille: 2383
Commentaire:
|
Taille: 2245
Commentaire:
|
Texte supprimé. | Texte ajouté. |
Ligne 37: | Ligne 37: |
groupadd tomcat useradd -m -g tomcat -d /opt/ -s /usr/sbin/nologin tomcat # FIXME: à remplacer par la commande adduser idoine |
|
Ligne 43: | Ligne 38: |
ORI-OAI
Installation des paquets
apt-get install apache2 php5 apt-get install ant libcommons-lang-java # les paquets suivants sont à désinstaller après création du paquet Debian pour le JDK (FIXME: à faire ailleurs, même…) apt-get install java-package unzip libxslt1.1 libgl1-mesa-glx libxtst6 libxxf86vm1 libgtk2.0-0
Installation du moteur ORI-OAI
Se référer a la documentation AUF - IDNEUF - MOTEUR ORI-OAI.
Configuration de la base
ALTER DATABASE orioai DEFAULT CHARACTER SET='utf8' DEFAULT COLLATE='utf8_general_ci'; GRANT ALL ON orioai.* TO 'idneuf'@'prod-ori-oai01-idneuf.vpc02.auf' IDENTIFIED BY 'XXXXXXXXXXXXXXXXX';
Vérifier la version de Java
# java -version java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
Gestion des permissions
Création du user et groupe tomcat
adduser --home /opt --shell /usr/sbin/nologin --disabled-password tomcat
Authentification Apache
mkdir -p /opt/ori-oai/auth cd /opt/ori-oai/auth htpasswd -c idneuf-auth idneuf-adm
Pour modifier le mode passe ultérieurement :
htpasswd /opt/ori-oai/auth/idneuf-auth idneuf-adm
Droits sur les dossiers dans /opt/ori-oai/
# ls -l total 68 drwxr-xr-x 2 root root 4096 sep 20 18:06 auth drwxr-xr-x 5 tomcat tomcat 4096 sep 22 19:02 data drwxr-xr-x 4 root root 4096 sep 21 20:24 install drwxr-xr-x 2 tomcat tomcat 4096 sep 21 21:57 logs drwx------ 2 root root 16384 sep 20 17:34 lost+found drwxr-xr-x 2 tomcat tomcat 4096 sep 21 20:31 ori-oai-repository drwxr-xr-x 7 root root 4096 sep 22 17:59 src drwxr-xr-x 9 tomcat tomcat 4096 sep 21 20:30 tomcat-harvester drwxr-xr-x 9 tomcat tomcat 4096 sep 21 20:30 tomcat-indexing drwxr-xr-x 9 tomcat tomcat 4096 sep 21 20:30 tomcat-repository drwxr-xr-x 9 tomcat tomcat 4096 sep 21 20:30 tomcat-search drwxr-xr-x 9 tomcat tomcat 4096 sep 21 20:30 tomcat-vocabulary lrwxrwxrwx 1 tomcat tomcat 59 sep 21 20:56 web -> /opt/ori-oai/install/ori-oai-quick-install-2.1.0-alpha/web/