Projet Socle ENT
Pages enfant
  • Installation uPortal 4 sur une centos 6.3

Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

Installation du système

Bases de données

Creation bases postgresql

[root@ecampusdev lib]# su - postgres

...

postgres-# \q

-bash-4.1$ exit

 

Autoriser connection tcp/ip a postgresql

Il faut ouvrir le port 5432 (tcp et udp) dans iptables

Modification de /var/lib/pgsql/data/pg_hba.conf et /var/lib/pgsql/data/postgresql.conf

 

Récuperation du portail

GIT


git config --global user.name "Gaboret"
git config --global user.mail "Christophe.Gaboret@tem-tsp.eu"
cd ~/.ssh/
ssh-keygen -t rsa -C "Christophe.Gaboret@tem-tsp.eu"
more ~/.ssh/id_rsa.pub

On rentre sa cle publique sur son compte dans https://github.com/settings/ssh
ssh -T git@github.com
Hi Gaboret! You've successfully authenticated, but GitHub does not provide shell access.

 

Récuperation

...

d'une branche à soi


On fork esup-uportal.git (bouton fork en haut à droite), une fois connecte sur https://github.com/EsupPortail/esup-uportal

...

git clone git@github.com:Gaboret/esup-uportal.git
cd esup-uportal
git remote add upstream git://github.com/EsupPortail/esup-uportal.git
git fetch upstream
git checkout -b conf-temtsp origin/master
git branch

Adaptations


build.properties

[esup@ecampusdev esup-uportal]$ pwd

...

cp build.properties.sample build.properties

Adaptation: Modifications

[esup@ecampusdev esup-uportal]$ diff -urb build.properties.sample build.properties
--- build.properties.sample    2013-02-19 12:08:39.110793430 +0100
+++ build.properties    2013-02-19 13:25:23.078786253 +0100
@@ -32,7 +32,7 @@
 
 ##### Replace server.home with the location of Tomcat 6 on your machine #####
 # path to tomcat binaries
-server.home=@server.home@
+server.home=/usr/share/tomcat6
 
 # path to tomcat servlet container (defaults to same directory as the tomcat binaries)
 server.base=${server.home}
@@ -41,7 +41,7 @@
 server.webapps=${server.base}/webapps
 
 # If the mvn executable isn't on your path you can set the location here or set it on your path.
-#maven.home=
+maven.home=/usr/local/maven/

...




rdbm.properties

Modification de /home/esup/EsupPortail/esup-uportal/uportal-war/src/main/resources/properties/rdbm.properties pour décommenter la partie postgresql (ou mysql)

 

esup.properties

Modification de /home/esup/EsupPortail/esup-uportal/filters/esup.properties :

 

## Server Path configuration
environment.build.server.webapps=/usr/share/tomcat6/webapps
environment.build.server.home=/usr/share/tomcat6


## Database Connection Settings (Uncomment the Maven Filters section in rdbm.properties)

...

# Esup 
# NOT USE NOW
environment.build.host.logicalName=ecampusdev1
environment.build.xsl.debug=ERROR
environment.build.xsl.cache=
environment.build.xsl.help.url=http://infopedia.tem-tsp.eu/wikiuser/doku.php?id=documentation:ecampus:ecampus
environment.build.xsl.help.login=http://infopedia.tem-tsp.eu/wikiuser/doku.php?id=documentation:ecampus:seconnecter
esup.title.main=${esup.host.logicalName} - Télécom SudParis & Télécom École de Management


Création de liens symboliques

cd /usr/share/tomcat6/
sudo ln -s /var/lib/tomcat6/common common

...

ln -s /home/esup/esup-uportal/uportal-war/target/uPortal/WEB-INF/lib/ /home/esup/EsupPortail/esup-uportal/lib

 

Premières taches ant

 

[esup@ecampusdev esup-uportal]$ ant dbtest

...
     [java]  INFO [12:49,965]     aggrEventsJdbcOperations
     [java]  INFO [12:49,966]         Database name:    'PostgreSQL'
     [java]  INFO [12:49,966]         Database version: '8.4.13' (8.4)
     [java]  INFO [12:49,966]         Driver name:      'PostgreSQL Native Driver'
     [java]  INFO [12:49,966]         Driver version:   'PostgreSQL 9.0 JDBC4 (build 801)' (9.0)
     [java]  INFO [12:49,966]         Driver class:     'PostgreSQL Native Driver'
     [java]  INFO [12:49,966]         Connection URL: 'jdbc:postgresql://ecampusdev.tem-tsp.eu/uportal4'
     [java]  INFO [12:49,966]         User:             'uportal'

Création compte admin

ant -Dmaven.test.skip=true data-export -Dtype=group-membership -Dsysid="Portal Administrators" -Ddir=/tmp
ant -Dmaven.test.skip=true data-import -Dfile=/tmp/Portal_Administrators.group-membership.xml

Faut-il créer /home/esup/EsupPortail/esup-uportal/uportal-war/src/main/data/quickstart_fr_entities/user/admin* ou admin* est admin-lo.user.xml et admin.user.xml ?