Install Alfresco-community 4.2.d
Install
alfresco-community bisa dilakukan secara manual atau secara
automatis. Installasi yang akan dibahas adalah installasi secara
manual untuk linux 32 bit menggunakan source
alfresco-community-4.2.d.zip yang bisa diambil dari alfresco.com,
sedangkan linux 64 bit sudah ada installasi secara automatisnya.
Bahan-bahan yang akan
digunakan sebagai berikut:
- Linux ubuntu 32 bit dan
turunannya.
- Java versi terbaru.
- Image magic
- ffmpeg.
- office (tak perlu
install karena sudah ada).
- swftool.
- Database (yang saya
gunakan adalah postgres)
1. Langkah pertama
pastikan java jre sudah terinstall, untuk memastikkannya ketik java
pada terminal
putra@bernopedp07
~ $ java
jika
sudah terinstall maka akan muncul tulisan sebagai berikut:
Usage:
java [-options] class [args...]
(to
execute a class)
or
java [-options] -jar jarfile [args...]
(to
execute a jar file)
where
options include:
-d32
use a 32-bit data model if available
-d64
use a 64-bit data model if available
-client
to select the "client" VM
-server
to select the "server" VM
-zero
to select the "zero" VM
-jamvm
to select the "jamvm" VM
-avian
to select the "avian" VM
-hotspot
is a synonym for the "client" VM [deprecated]
The
default VM is server,
because
you are running on a server-class machine.
-cp
-classpath
A
: separated list of directories, JAR archives,
and
ZIP archives to search for class files.
-D=
set
a system property
-verbose[:class|gc|jni]
enable
verbose output
-version
print product version and exit
-version:
require
the specified version to run
-showversion
print product version and continue
-jre-restrict-search
| -no-jre-restrict-search
include/exclude user
private JREs in the version search
-?
-help print this help message
-X
print help on non-standard options
-ea[:...|:]
-enableassertions[:...|:]
enable
assertions with specified granularity
-da[:...|:]
-disableassertions[:...|:]
disable
assertions with specified granularity
-esa
| -enablesystemassertions
enable
system assertions
-dsa
| -disablesystemassertions
disable
system assertions
-agentlib:[=]
load
native agent library , e.g. -agentlib:hprof
see
also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:[=]
load
native agent library by full pathname
-javaagent:[=]
load
Java programming language agent, see java.lang.instrument
-splash:
show
splash screen with specified image
See
http://www.oracle.com/technetwork/java/javase/documentation/index.html
for more details.
jika
tidak mucul maka bisa gunakan perintah
sudo
apt-get install openjdk-6-jdk
“openjdk-6-jdk”
bisa diganti dengan versi java
terbaru
2. Install imagemagic,
ffmpeg,swftool
sudo apt-get install
imagemagick ffmpeg libreoffice
imagemagick
: digunakan untuk convert dan scale image
ffmpeg
: digunakan untuk store video di repostory
swftool
: digunakan untuk mengconvert dari pdf ke swf
3.
Tomcat
Insatall
tomcat pada linux
tar -xvf apache-tomcat-6.0.35.tar.gz Setelah itu pindah ke folder yang disiapkan sebagai tempat tinggal alfresco contoh: /media/program/alfresco setelah itu pindahkan tomcat kedalam folder alfresco dengan perintah mv apache-tomcat-6.0.35 /media/program/alfreco/tomcat kemudian coba jalan kan tomcatnya cd /opt/alfresco40c/tomcat/bin ./startup.sh Using CATALINA_BASE: /opt/alfresco40c/tomcat Using CATALINA_HOME:/opt/alfresco40c/tomcat Using CATALINA_TMPDIR:/opt/alfresco40c/tomcat/temp Using JRE_HOME: /usr Using CLASSPATH:/opt/alfresco40c/tomcat/bin/bootstrap.jar
Cek apakah tomcat berjalan:
ps -ef |grep java tpeelen 22460 1 8 15:35 pts/0 00:00:01 /usr/bin/java -Djava.util.logging.config.file=/opt/alfresco40c/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/opt/alfresco40c/tomcat/endorsed -classpath /opt/alfresco40c/tomcat/bin/bootstrap.jar -Dcatalina.base=/opt/alfresco40c/tomcat -Dcatalina.home=/opt/alfresco40c/tomcat -Djava.io.tmpdir=/opt/alfresco40c/tomcat/temp org.apache.catalina.startup.Bootstrap start tpeelen 22482 15472 0 15:35 pts/0 00:00:00 grep --color=auto java
bila
muncul pesan seperti diatas maka anda sudah berhasil menginstall
tomcat, kemudian kita coba mematikan tomcatnya dengan perintah
./shutdown.sh Using CATALINA_BASE: /opt/alfresco40c/tomcat Using CATALINA_HOME:/opt/alfresco40c/tomcat Using CATALINA_TMPDIR:/opt/alfresco40c/tomcat/temp Using JRE_HOME: /usr Using CLASSPATH:/opt/alfresco40c/tomcat/bin/bootstrap.jar
cek apakah tomcat masih berjalan
ps -ef |grep java tpeelen 22516 15472 0 15:38 pts/0 00:00:00 grep --color=auto java jika muncul pesan tersebut dan menjelaskan proses tomcat sudah tidak berjalan, berarti tomcat sudah ter-shutdown. Langkah selanjutnya menyiapkan rumah untuk file-file alfresco-community agar dapat berjalan. Buat folder-folder itu dengan perintah : mkdir /media/program/alfresco/tomcat/shared mkdir /media/program/alfresco/tomcat/shared/classes mkdir /media/program/alfresco/tomcat/shared/libEdit tomcat untuk file catalina.properties untuk memberi tahu tomcat untuk selalu menambahkan folder tambahan pd folder tomcat/shread. Gunakan perintah:
nano
/media/program/alfresco/tomcat/conf/catalina.properties
temukan kalimat “shared folder” pada
catalina.properties dan tambahkan
“${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar”
sehingga berubah nilai menjadi
shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/lib/*.jar
Pada dasar tomcat sudah
menggunakan ISO-8859-1
character encoding saat
mengdecoding URL dari browser. Proses ini memungkinkan terjadi
masalah saat proses uploading, renaming dan creating file menggunakan
internasional character. Untuk mengatasinya ubah file server.xml di
tomcat
nano /opt/alfresco40c/tomcat/conf/server.xml
file
Temukan kalimat Connectoe section dan tambahkan property URIEncoding=”UTF-8”
connectionTimeout="20000"
redirectPort="8443" />
4. Database
Untuk database yang saya gunakan adalah
postgres. Setting postrgres untuk alfresco adalah sebagai berikut:
buat database dengan nama alfresco
tambahkan user login pada alfresco
sebagai berikut
username : alfresco
password : alfresco
jika sudah testing login dengan nama
username tersebut bisa menggunakan pgadmin, maupun squirrel.
5. Alfresco
Setelah mendapatkan
alfresco-community versi yang .zip lakukan unzip alfresco-community
dan anda akan mendapatkan 3 folder licenses, bin, and webapps.
Pindahkan folder-folder tersebut kedalam alfresco sebagai berikut :
mv
bin /opt/alfresco40c/
mv
licenses /opt/alfresco40c/
mv
web-server/endorsed/* /opt/alfresco40c/tomcat/endorsed
mv
web-server/shared/* /opt/alfresco40c/tomcat/shared
mv
web-server/lib/* /opt/alfresco40c/tomcat/lib
mv
web-server/webapps/* /opt/alfresco40c/tomcat/webapps/
buat file untuk
menjalankan alfresco-community :
nano
/media/myfiles/program/alfresco/alfresco.sh
Isikan
dengan:
#!/bin/sh
#
Start or stop Alfresco server
#
Set the following to where Tomcat is installed
ALF_HOME=/media/myfiles/program/alfresco
cd
"$ALF_HOME"
APPSERVER="${ALF_HOME}/tomcat"
export
CATALINA_HOME="$APPSERVER"
#
Set any default JVM values
#export
JAVA_OPTS='-Xms512m -Xmx1024m -Xss1024k -XX:MaxPermSize=256m
-XX:NewSize=256m -server'
export
JAVA_OPTS='-Xms512m -Xmx768m -Xss768k -XX:MaxPermSize=256m
-XX:NewSize=256m -server'
export
JAVA_OPTS="${JAVA_OPTS} -Dalfresco.home=${ALF_HOME}
-Dcom.sun.management.jmxremote"
#
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
Setelah itu lakukan
editing pada alfresco-global.properties yang tersimpan di
tomcat/shared/classes/alfresco-global.properties dan ubah sebagai
berikut :
###############################
##
Common Alfresco Properties #
###############################
#
#
Sample custom content and index data location
#
dir.root=/media/myfiles/program/alfresco/alf_data
#dir.keystore=${dir.root}/keystore
#
#
Sample database connection properties
#
db.nama=alfresco
db.username=alfresco
db.password=alfresco
db.host=jaguar
db.port=5432
#
#
External locations
#-------------
ooo.exe=/usr/bin/soffice
ooo.enabled=true
jodconverter.officeHome=/usr/lib/libreOffice
jodconverter.portNumbers=8101
jodconverter.enabled=true
img.root=/usr
swf.exe=/usr/bin/pdf2swf
ffmpeg.exe=/usr/bin/ffmpeg
#
#
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
#
#
MySQL connection
#
#db.driver=org.gjt.mm.mysql.Driver
#db.url=jdbc:mysql://localhost/alfresco?useUnicode=yes&characterEncoding=UTF-8
#
#
Oracle connection
#
#db.driver=oracle.jdbc.OracleDriver
#db.url=jdbc:oracle:thin:@localhost:1521:alfresco
#
#
SQLServer connection
#
Requires jTDS driver version 1.2.5 and SNAPSHOT isolation mode
#
Enable TCP protocol on fixed port 1433
#
Prepare the database with:
#
ALTER DATABASE alfresco SET ALLOW_SNAPSHOT_ISOLATION ON;
#
#db.driver=net.sourceforge.jtds.jdbc.Driver
#db.url=jdbc:jtds:sqlserver://localhost:1433/alfresco
#db.txn.isolation=4096
#
#
PostgreSQL connection (requires postgresql-8.2-504.jdbc3.jar or
equivalent)
#
db.driver=org.postgresql.Driver
db.url=jdbc:postgresql://${db.host}:${db.port}/${db.name}
#
#
DB2 connection
#
#db.driver=com.ibm.db2.jcc.DB2Driver
#db.url=jdbc:db2://localhost:50000/alfresco:retrieveMessagesFromServerOnGetMessage=true;
#
#
Index Recovery Mode
#-------------
index.recovery.mode=AUTO
#
#
Outbound Email Configuration
#-------------
#mail.host=
#mail.port=25
#mail.username=anonymous
#mail.password=
#mail.encoding=UTF-8
#mail.from.default=alfresco@alfresco.org
#mail.smtp.auth=false
#
#
Alfresco Email Service and Email Server
#-------------
#
Enable/Disable the inbound email service. The service could be used
by processes other than
#
the Email Server (e.g. direct RMI access) so this flag is independent
of the Email Service.
#-------------
#email.inbound.enabled=true
#
Email Server properties
#-------------
#email.server.enabled=true
#email.server.port=25
#email.server.domain=alfresco.com
#email.inbound.unknownUser=anonymous
#
A comma separated list of email REGEX patterns of allowed senders.
#
If there are any values in the list then all sender email addresses
#
must match. For example:
#
.*\@alfresco\.com, .*\@alfresco\.org
#
Allow anyone:
#-------------
#email.server.allowed.senders=.*
#
#
The default authentication chain
#
To configure external authentication subsystems see:
#
http://wiki.alfresco.com/wiki/Alfresco_Authentication_Subsystems
#-------------
#authentication.chain=alfrescoNtlm1:alfrescoNtlm
#
#
URL Generation Parameters (The ${localname} token is replaced by the
local server name)
#-------------
alfresco.context=alfresco
alfresco.host=${localname}
alfresco.port=8080
alfresco.protocol=http
#
share.context=share
share.host=${localname}
share.port=8080
share.protocol=http
#cifs.enable=true
#ftp.enable=true
#cifs.serverName=${localname}
#cifs.hostannounce=true
#imap.server.enabled=false
#imap.server.port=143
#imap.server.host=
#
Default value of alfresco.rmi.services.host is 0.0.0.0 which means
'listen on all adapters'.
#
This allows connections to JMX both remotely and locally.
#
alfresco.rmi.services.host=0.0.0.0
#
#
RMI service ports for the individual services.
#
These seven services are available remotely.
#
#
Assign individual ports for each service for best performance
#
or run several services on the same port. You can even run everything
on 50500 if needed.
#
#
Select 0 to use a random unused port.
#
#avm.rmi.service.port=50501
#avmsync.rmi.service.port=50502
#attribute.rmi.service.port=50503
#authentication.rmi.service.port=50504
#repo.rmi.service.port=50505
#action.rmi.service.port=50506
#wcm-deployment-receiver.rmi.service.port=50507
#monitor.rmi.service.port=50508
Selamat
mencoba.
No comments:
Post a Comment