cancel
Showing results for 
Search instead for 
Did you mean: 

BonjourMon installation alfresco marche sous windows....

laurentalfresco
Champ in-the-making
Champ in-the-making
Bonjour

Mon installation alfresco marche sous windows. Maintenant je dois tester ceci sous linux. Voici la configuration que je dois mettre en place.


Linux   RHEL AS 4
    Alfresco community 2.1
    alfresco-community-tomcat-2.1.0.tar.gz

JDK 5.0 Update 12
     jdk-1_5_0_12-linux-i586.bin
     jdk-1_5_0_12-linux-i586-rpm.bin

PostgreSQL 8
     compat-postgresql-libs-4-2PGDG.rhel4.i686.rpm
     postgresql-8.2.4-1PGDG.i686.rpm
     postgresql-contrib-8.2.4-1PGDG.i686.rpm
     postgresql-devel-8.2.4-1PGDG.i686.rpm
     postgresql-docs-8.2.4-1PGDG.i686.rpm
     postgresql-libs-8.2.4-1PGDG.i686.rpm
     postgresql-plperl-8.2.4-1PGDG.i686.rpm
     postgresql-plpython-8.2.4-1PGDG.i686.rpm
     postgresql-pltcl-8.2.4-1PGDG.i686.rpm
     postgresql-server-8.2.4-1PGDG.i686.rpm
     postgresql-test-8.2.4-1PGDG.i686.rpm

Ne connaissant  que très peu Linux, je voudrais savoir si ma configuration est bonne ?
Et quels fichiers choisir pour jdk et postgres ?

De plus en cherchant un peu sur le wiki ou le forum je n’ai pas réussi à trouver de procédures d’installation intéressantes pour ma config, ou du moins assez claires pour moi.

Merci de me guider pour cette procédure en m’indiquant peut-être des liens qui pourraient m’être utiles.

Merci
11 REPLIES 11

michaelh
Champ on-the-rise
Champ on-the-rise
Pour le JDK, n'importe quel fichier. L'un est un RPM (package RH), et l'autre un installeur SUN qui se lance directement.

Pour le reste, dans l'ordre, je dirais :
- Installer PostgreSQL (postgresql-server-8.2.4-1PGDG.i686.rpm et ses dépendances devrait suffire)
- Suivre les indications de http://wiki.alfresco.com/fr/index.php/Documentation:Choix_de_la_base_de_donn%C3%A9es

Pour OpenOffice (oui oui, il faut aussi OOo), on verra par la suite … Smiley Happy

laurentalfresco
Champ in-the-making
Champ in-the-making
Bonjour

J’ai un problème au niveau des variables d’environnement.
Mon java est à ce niveau /opt/jdk1.5.0_12
Et alfresco ici /opt/alfresco

Voici alfresco.sh

JAVA_HOME=/opt/jdk1.5.0_12
JRE_HOME=/opt/jdk1.5.0_12/jre
LANG=fr_FR.UTF-8
export JAVA_HOME
export JRE_HOME
export LANG

#!/bin/sh
# Start or stop Alfresco server
# Set the following to where Tomcat is installed
APPSERVER=/opt/alfresco/tomcat
# Set any default JVM values
export JAVA_OPTS='-Xms128m -Xmx512m -server'
# Following only needed for Sun JVMs before to 1.5 update 8
export JAVA_OPTS="${JAVA_OPTS} -XX:CompileCommand=exclude,org/apache/lucene/index/IndexReader$1,doBody -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo$Merger,mergeIndexes -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo$Merger,mergeDeletions"

#
if [ "$1" = "start" ]; then
  "$APPSERVER"/bin/startup.sh
#  if [ -r ./virtual_start.sh ]; then
#    sh ./virtual_start.sh
#  fi
  if [ -r ./start_oo.sh ]; then
    sh ./start_oo.sh
  fi
elif [ "$1" = "stop" ]; then
  "$APPSERVER"/bin/shutdown.sh
#  if [ -r ./virtual_start.sh ]; then
#    sh ./virtual_stop.sh
#  fi
  if [ -r ./start_oo.sh ]; then
    killall soffice.bin
  fi
fi
Et le résultat de la commande env

[root@vpc-rhel4-alfresco alfresco]# ./alfresco.sh start
The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program
[root@vpc-rhel4-alfresco alfresco]# env
HOSTNAME=vpc-rhel4-alfresco.uniloggda.unilog.fr
TERM=xterm
SHELL=/bin/bash
HISTSIZE=1000
SSH_CLIENT=::ffff:10.83.199.15 2753 22
OLDPWD=/opt
SSH_TTY=/dev/pts/2
JRE_HOME=/opt/jdk1.5.0_12/jre
USER=root
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
KDEDIR=/usr
MAIL=/var/spool/mail/root
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
INPUTRC=/etc/inputrc
PWD=/opt/alfresco
JAVA_HOME=/opt/jdk1.5.0_12
LANG=fr_FR.UTF-8
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=1
HOME=/root
LOGNAME=root
SSH_CONNECTION=::ffff:10.83.199.15 2753 ::ffff:10.83.199.179 22
LESSOPEN=|/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES=1
_=/bin/env
[root@vpc-rhel4-alfresco alfresco]# ./alfresco.sh start
The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program
merci

laurentalfresco
Champ in-the-making
Champ in-the-making
mes variables d’environnement sont-elles bien définies ?

michaelh
Champ on-the-rise
Champ on-the-rise
A ta place, je supprimerais la variable JRE_HOME qui n'apporte rien, pour conserver uniquement JAVA_HOME.

A part ça … je ne vois pas.

Ceci dit les ressources ne manquent pas pour ce genre d'erreur : http://www.google.fr/search?hl=fr&q=The+BASEDIR+environment+variable+is+not+defined+correctly

lme
Champ in-the-making
Champ in-the-making
Essaie de définir une variable CATALINA_HOME équivalent à ta variable APPSERVER.

laurentalfresco
Champ in-the-making
Champ in-the-making
En ce qui concerne le problème précèdent, il était du au droit insuffisant sur les .sh

Maintenant je me retrouve avec cette log, le démarrage d’alfresco n’aboutit pas.


15:23:32,560 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation: 
Execution result:
   os:         Linux
   command:    convert /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_source_34047.gif  /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_target_34048.png
   succeeded:  false
   exit code:  1
   out:       
   err:        java.io.IOException: convert: not found
15:23:39,234 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
15:23:41,896 WARN  [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
15:23:46,511 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.PostgreSQLDialect.
15:23:53,717 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
15:23:57,037 WARN  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'.  'dir.root' should be overridden to point to a specific folder.
15:23:57,038 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ./alf_data
15:23:57,172 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
15:23:57,403 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
15:23:57,746 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_12-b04; maximum heap size 1012.625MB
15:23:57,748 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.1.0 (484) schema 64 - Installed version 2.1.0 (484) schema 64

michaelh
Champ on-the-rise
Champ on-the-rise
Là en l'occurrence, le log dit que le démarrage s'est bien passé.
Le problème avec la commande "convert" est juste un warning pour préciser que la commande n'est pas disponible, donc que Image Magick n'est pas installé.

tu ne peux pas te connecter avec le client Web ?

laurentalfresco
Champ in-the-making
Champ in-the-making
Bonjour


Pour résumer…

LDAP installé et configuré.
Synchronisation et authentification LDAP+UserAlfresco fonctionnent.
Image Magick installé donc plus de warning.

Et maintenant comme prévu


Pour OpenOffice (oui oui, il faut aussi OOo), on verra par la suite … Smiley Happy
Installation OpenOffice…

Fichier téléchargé.
OOo_2.2.1_LinuxIntel_install_fr.tar.gz

1. Dans /opt    tar xvzf  Ooo_1.9.m79_native_LinuxIntel_install.tar.gz
2. cd dans le répertoire contenant le fichier extrait puis dans RPMS, puis exécuter rpm -Uvh *rpm pour une installation standard dans /opt.
3. cd dans le répertoire desktop-integration et executer rpm -Uvh pour le menu rpm qui s'applique au système. Pour mon RedHat utilisation de
    rpm -Uvh openofficeorg-redhat-menus-1.9.79-1.noarch.rpm.
4. A partir de l’environnement redhat 4
    Menu  –>  Bureau –> OpenOffice.org 2.2 base      pour l’enregistrement.
5. renommer zstart_oo.sh en start_oo.sh
6. editer start_oo.sh
Xvfb :1 -screen 0 800x600x16 -fbdir /usr/src > /dev/null 2>&1 &
export DISPLAY=:1
/opt/openoffice.org2.2/program/soffice "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nologo -headless -nofirststartwizard &
J’obtiens la log suivante au démarrage :
/opt/openoffice.org2.2/program/soffice.bin X11 error: Can't open display: :1
   Set DISPLAY environment variable, use -display option
   or check permissions of your X-Server
   (See "man X" resp. "man xhost" for details)
17:35:36,838 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
17:35:39,015 WARN  [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
17:35:43,861 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.PostgreSQLDialect.
17:35:50,745 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Aucune modification na été apportée au schéma.
17:35:54,708 WARN  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'.  'dir.root' should be overridden to point to a specific folder.
17:35:54,709 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ./alf_data
17:35:55,238 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Vérification des correctifs à appliquer …
17:35:55,605 INFO  [org.alfresco.repo.module.ModuleServiceImpl] 0 module(s) trouvé(s).
17:35:58,676 ERROR [org.alfresco.smb.protocol] Failed to get local domain/workgroup name, using default of WORKGROUP
17:35:58,677 ERROR [org.alfresco.smb.protocol] (This may be due to firewall settings or incorrect <broadcast> setting)
17:35:58,744 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.5.0_12-b04; maximum heap size 1012,625MB
17:35:58,745 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.1.0 (484) schema 64 - Installed version 2.1.0 (484) schema 64
Et celle-ci à l’arrêt :

soffice.bin: aucun processus tué


Merci encore pour votre aide.

lme
Champ in-the-making
Champ in-the-making
Bonjour,

Pour ton erreur "Can't open display", on dirait que Xvfb n'a pas pu démarré. Es-tu sûr que Xvfb est installé sur ton système ? Que te donne la commande suivante ?
# Xvfb :1 -screen 800x600x16
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.