Install Alfresco 3.4c CE in 5 minutes

Sometimes it is necessary a fresh installation of Alfresco for testing purposes and of a quickly way. In my case i want to create virtual machines with different configurations and variations of Alfresco.
Well, this post explains how to do an installation quickly of Alfresco.

I. Pre-requisites

  • Virtual Box machine with Windows XP SP2 as guest S.O. and 1024 MB Ram.
  • JDK 1.6.0_13 installed.
  • MySQL Server 5.1.33-community.
  • Alfresco 3.4c CE installer downloaded (alfresco-community-3.4.c-installer-win-x32.exe).

II. Installation

1. Create an empty database for Alfresco named, in my case, “alf34c_db1”.

C:\1bpms-demo\xampplite\mysql\bin>mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.1.33-community MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> CREATE DATABASE alf34c_db1 DEFAULT CHARACTER SET utf8;
mysql> GRANT ALL ON alf34c_db1.* TO alf_user1@'localhost' IDENTIFIED BY 'demodemo' WITH GRANT OPTION;
mysql> GRANT ALL ON alf34c_db1.* TO alf_user1@'localhost.localdomain' IDENTIFIED BY 'demodemo' WITH GRANT OPTION;

Query OK, 0 rows affected (0.00 sec)

mysql> quit;
Bye

2. Execute the Alfresco installer.

3. In “Installation type” selects “Advance – Configures serve ports and service properties”, then in the “Database Installation” popup to select “I wish to use an existing database”. Then, enter the following:

Alfresco installer - Database configuration

Alfresco installer - Database configuration

4. When finalizing installer, run ${ALF_HOME}/tomcat/bin/startup.bat.

5. When starting you can see in the catalina out how to Alfresco create database structure and populates with initial data. Also, you can see several errors in catalina out console because you need modify JVM variables.

OutOfMemoryError and PermGen error when starting Alfresco

OutOfMemoryError and PermGen error when starting Alfresco

Then, add or modify JAVA_OPTS variable in Tomcat to ${ALF_HOME}/tomcat/bin/setenv.bat file. This file looks like to:

set JAVA_OPTS=-Xms256m -Xmx1024m -Xss96k -XX:MaxPermSize=256m -server
set JAVA_HOME=C:\1BPMS-~1\alf34c_1\java
set JAVA_OPTS=%JAVA_OPTS%

In some case, you need to copy jaxb-api-2.1.jar from ${ALF_HOME}/tomcat/webapps/alfresco/WEB-INF/lib to ${ALF_HOME}/tomcat/endorsed.

6. Restart.

When finished, open browser and go to http://localhost:8080/alfresco. You can log in to Alfresco with admin/admin.

END.

References:

1) Error al arrancar el servidor alfresco 3.2
http://forums.alfresco.com/es/viewtopic.php?f=5&t=1785

2) java.lang.OutOfMemoryError: PermGen space
http://forums.alfresco.com/en/viewtopic.php?t=14451

@Chilcano

Tagged with: ,
Posted in ECM
4 comments on “Install Alfresco 3.4c CE in 5 minutes
  1. Mary M says:

    Excellent I was looking for this solution, but I have two questions:where is ${ALF_HOME}/tomcat/endorsed. (in 3.4.c not found, neither wsq.log)?

    start and stop in this version is in $ALF_HOME{/tomcat/bin/startup.bat and shutdown.bat ?

    thanks!

    • Thanks for your comments.
      The ‘endorsed’ folder must be created, catalina.out is in ALF_HOME/tomcat/logs and startup.bat and shutdown.bat in ‘bin’ folder.

      ALF_HOME is the folder where you install Alfresco.

      regards

  2. Mary M says:

    Hi Roger but I dont have a “endorsed” folder in my instalation I follow the same instrutions for install in windows and ubuntu with 3.4.c and the folder isn´t created, I don´t understand

    thanks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Archives
%d bloggers like this: