Rebuild Alfresco Index:

Step 1: Stop Alfresco
Step 2: Delete everything under<ALFRESCO_HOME>/alf_data/lucene-indexesStep 3: Edit the following property file:<ALRESCO_HOME>/tomcat/shared/classes/alfresco/extension/custom-repository.properties
Set the property index.recovery.mode as follows:# The index recovery mode (NONE, VALIDATE, AUTO, FULL)
index.recovery.mode=FULL

Step 4: Start Alfresco

Watch the log file, alfresco will rebuild the lucene index. You may also want to set index.recovery.mode back to VALIDATE. 

Configure Alfresco to use mysql :

Alfresco is pre-configured to use the HSQL database

install mysql
download http://dev.mysql.com/downloads mysql community server 5.0 windows(x86)zip/setup.exe
install as a windows service
if you are running firewall, open tcp port 3306
after installation add to path
open mysql command line client to test that the installtion is successful

run db_setup.bat' which creates a MySQL database named 'alfresco' with a user account and password
of 'alfresco'. 

Configure Alfresco
------------------

To convert the default installation to MySQL, you simple need to modify 3 files
from the tomcat/shared/classes/alfresco/extension directory that are set to use
HSQL.  Those files are:

- custom-db-and-data-context.xml
- custom-db-connection.properties
- custom-hibernate-dialect.properties

If you already used alfresco, stop alfresco, you need to empty the directory dir.root before
and restart alfresco

Change the default Alfresco port:

change the default tomcat config to avoid conflict with tomcat in netbean
in <tomcat_home>/conf/server.xml file
change the http 1.1 connector from 8080 to 8180
change the shutdown port from 8005 to 8105
change the ajp 1.3 connector port from 8009 to 8109

change the [alfresco home]\bin\alfresco web client to point to 8180 instead of 8080

start alfresco

When Alfresco is installed, it creates an administration user called 'admin' with a default password of 'admin'
Using the CIFS (Shared Folder) Server
map a drive to \\[machine_name]_A\alfresco, when prompted for user name and password, use admin, admin

web client:
http://localhost:8080/alfresco

change admin password:
login using the web client
user options (top middle icon)

create a new user:
login using the web client
Administrative Console->manage system users->create user

default config file
config directory:<tomcat_home>webapps/alfresco/WEB-INF/classes/alfresco
Spring configuration: application-context.xml
Core Alfresco beans: core-services-context.xml
repository properties file: repository.properties
  dir.root: location of the binary content and lucene indexes
  db.*: core database connection properties
hibernate properties: domain/hibernate-cfg.properties
jcr 170 beans: jcr-api-context.xml

custom config:
<tomcat_home>/shared/classes/alfresco/extension

get the community sdk 1.4.0
jcr samples: samples\JCRSamples
jar file: lib\server\repository.jar

run the sample program
1. add lib\server\repository.jar and core.jar and every jar in lib\server\dependencies
2. add \lib\server\config.jar
3. add alfreso\extension to the classpath

problems and solutions:
1. one time the admin user was lost, and I can't log in. To solve it:edit repository.properties
and change index.recovery.mode from VALIDATE to FULL, stop and restart the server

2. to assign admin rights to user:
edit authority-services-context.xml and add a value to <property name="adminUsers">

Install Alfresco WAR Bundle
---------------------------

- Browse to http://www.alfresco.com/downloads
- Download the "Alfresco WAR Bundle" option
- Unzip alfresco-war-xxxxx.zip to a new directory or folder
- Copy the alfresco.war file to the appropriate location for your application server
- If you have deployed previous versions of Alfresco, you may wish to remove any
  temporary files you application server has created. 

Add Additional Required Libraries
---------------------------------

Some additional libraries are required to be added to the container's endorsed JAR
files.  Currently, this is only required for WCM functionality, but may become necessary
more generally for Alfresco in future releases.

- Copy the JAR files from <alfresco>/endorsed into <container common>/endorsed
  (e.g. tomcat/common/endorsed)

put mysql jar file in tomcat/shared/lib

put custom xml files in tomcat/shared/classes/alfresco/extension

  • No labels