AnsweredAssumed Answered

Install alfresco3.2 in Ubuntu9.04 with tomcat already instal

Question asked by alpargata on Aug 12, 2009
Latest reply on Aug 18, 2009 by alpargata
Hi!!

I'm new to the Alfresco community and am bit lost. I am trying to install Alfresco in Ubuntu 9.04, but am not able.  I need this installed on tomcat6 for others applications, by this I install to alfresco-community-war-3.2.tar.gz. I take several days.


Here are the steps I've done, recently installed with Ubuntu:

1º- Install Java:
   # sudo apt-get install sun-java6-jdk sun-java6-fonts
   # sudo update-java-alternatives -s java-6-sun

2º Enter your variable:
   # echo 'JAVA_HOME="/usr/lib/jvm/java-6-sun"' | sudo tee -a /etc/environment
   # source /etc/environment

3º install to tomcat6:
   # sudo apt-get install tomcat6 tomcat6-admin
   # sudo /etc/init.d/tomcat6 start

4º Install mysql:
   # sudo apt-get install mysql-server mysql-client

5º Install alfresco war:
   #sudo mkdir /opt/alfresco
   # sudo mv alfresco-community-war-3.2.tar.gz /opt/alfresco/
   # sudo tar xvzf ./alfresco-community-war-3.2.tar.gz
   # sudo mv alfresco-community-war-3.2.tar.gz /opt
   # sudo cp alfresco.war /var/lib/tomcat6/webapps/
   # sudo cp share.war /var/lib/tomcat6/webapps/

6º Configure tomcat6:
   # sudo mkdir share
   # cd share
   # sudo mkdir classes
   # sudo mkdir /var/lib/tomcat6/share/lib
   # sudo gedit /var/lib/tomcat6/conf/catalina.properties
      Escribir en el fichero lo siguiente en el atributo "share.loader="
   shared.loader=shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
   
7º Prepare database:
   # sudo apt-get install chkconfig
   # sudo chkconfig mysql on
   # mysql -u root -p < /opt/alfresco/extras/databases/mysql/db_setup.sql
   # mysql -u root -p
   mysql> show databases;
      Check that the database exists Alfresco
   mysql> exit;
   
8º Configure repository:
   # sudo mkdir -p /var/lib/alfresco/alf_data/
   # sudo chown -R tomcat6:tomcat6 /var/lib/alfresco

9º Download to the conector of mysql:
   http://ftp.plusline.de/mysql/Downloads/Connector-J/
   #sudo mv /home/antonio/Escritorio/mysql-connector-java-5.1.8.tar.gz /opt/alfresco
   # sudo tar -xzf mysql-connector-java-5.1.8.tar.gz
   # sudo mv mysql-connector-java-5.1.8.tar.gz /opt
   # cd mysql-connector-java-5.1.8/
   # sudo cp mysql-connector-java-5.1.8-bin.jar /usr/share/java/
   # sudo cp /usr/share/java/commons-dbcp.jar /var/lib/tomcat6/share/lib/
   # sudo cp /usr/share/java/commons-dbcp-1.2.1.jar /var/lib/tomcat6/share/lib/

10º check tomcat:
   # sudo service tomcat6 start
   # sudo service tomcat6 stop

11º Download extension:
   http://sourceforge.net/projects/alfresco/files/Alfresco/3.2%20Community%20Edition/alfresco-community-sample-extensions-3.2.tar.gz/download
   # sudo cp /home/antonio/Escritorio/alfresco-community-sample-extensions-3.2.tar.gz /var/lib/tomcat6/share/classes/
   # cd /var/lib/tomcat6/share/classes/
   # sudo tar -xzf alfresco-community-sample-extensions-3.2.tar.gz
   # cd /var/lib/tomcat6/share/classes/alfresco/extension
   # sudo gedit custom-reposity.properties
      Write this:
——————————————————————————

###############################
## Common Alfresco Properties #
###############################

#
# Sample custom content and index data location
#
dir.root=/var/lib/alfresco/alf_data

#
# Sample database connection properties
#
db.username=alfresco
db.password=1122
db.pool.initial=10
db.pool.max=100
db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://localhost/alfresco

#
# Sample external executable locations
#
#ooo.exe=/opt/openoffice/program/soffice
#ooo.user=${dir.root}/oouser
#img.root=/srv/alfresco/ImageMagick
#swf.exe=/srv/alfresco/bin/pdf2swf

#
# Sample index tracking frequency
#
#index.tracking.cronExpression=0/5 * * * * ?

#
# Property to control whether schema updates are performed automatically.
# Updates must be enabled during upgrades as, apart from the static upgrade scripts,
# there are also auto-generated update scripts that will need to be executed.  After
# upgrading to a new version, this can be disabled.
#
#db.schema.update=true

#
# Derby connection
#
#db.driver=org.apache.derby.jdbc.EmbeddedDriver
#db.url=jdbc:derby:alf_data/derby_data/alfresco;create=true

#
# HSQL connection
#
#db.driver=org.hsqldb.jdbcDriver
#db.url=jdbc:hsqldb:file:alf_data/hsql_data/alfresco;ifexists=true;shutdown=true;

#
# MySQL connection (This is default and requires mysql-connector-java-5.0.3-bin.jar, which ships with the Alfresco server)
#
db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://localhost/alfresco
# PostgreSQL connection (requires postgresql-8.2-504.jdbc3.jar or equivalent)
#
#db.driver=org.postgresql.Driver
#db.url=jdbc:postgresql://localhost:5432/alfresco
————————————————————————————-

12º Create second file:
   # sudo gedit custom-hibernate-dialect.properties
      Write this:
—————————————————————————————

#
# Sample Hibernate configuration for changing Database dialect
# For a full list: http://www.hibernate.org/hib_docs/v3/reference/en/html_single/#configuration-optional-dialects
#

#
# Derby dialect
#
#hibernate.dialect=org.hibernate.dialect.DerbyDialect

#
# HSQL dialect
#
#hibernate.dialect=org.hibernate.dialect.HSQLDialect

#
# MySQL dialect (default)
#
hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect

#
# PostgreSQL dialect
#
#hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
#hibernate.query.substitutions=true TRUE, false FALSE
————————————————————————————-

13º Configure to the user into database
   # mysql -u root -p
   mysql> set password for 'alfresco'@'localhost' = PASSWORD('1122');
   mysql>exit

14º Configure log:
   # cd /var/lib/tomcat6/webapps/alfresco/WEB-INF/classes/
   # sudo gedit log4j.properties
      Sustituimos esta linea:
   log4j.appender.File.File=/var/log/tomcat6/alfresco.log
   # sudo chkconfig tomcat6 on
   # sudo service tomcat6 start

__________________________________________________________________________________

Finally, I try to access:
   http://localhost:8080/alfresco/
But, this is the result:
   Estado HTTP 404

I look at the forums and the wiki, but I can not find the solution. I need help. thanks

Outcomes