Install Alfresco , ini update dari tulisan ku yang sebelumnya



Tulisan ini dibuat untuk menyukseskan Lomba Blog Open Source P2I-LIPI dan Seminar Open Source P2I-LIPI 2009.



Instalasi alfresco kali ini aku lakukan setelah alfresco ku yang lama corrupts. penyebabnya, wah ga tau. tapi yang pasti alfresco ku yang lama tu, ga bisa diakses, halaman awalnya pun langsung rusak. Karena tidak tau bagaimana cara memperbaikinya, akhirnya aku buatkan saja di server yang baru.

Kabar baik untuk pengguna ubuntu, karena instalasi kali ini aku lakukan di ubuntu server 9.04. Alasan instalasi nya sebenernya sederhana, karena aku termakan bujuk rayu dari salah satu site alfresco yang mengatakan, untuk install alfresco di ubuntu sudah sangat mudah, cukup sudo apt-get install alfresco-community. namun sayang, setelah ubuntu server kuinstall, lalu command itu ku eksekusi, yang ada hanyalah kenyataan pahit, bahwa paket alfresco versi ubuntunya ga ada :-(. oh ya link yang mengatakan sudah bisa itu ada di
http://www.contentmanager.net/magazine/news_h37158_alfresco_community_now_available_for_ubuntu.html


di situs itu dikatakan ....
Alfresco Community Edition 3.2 can be installed by users of Ubuntu Server Edition 9.04 by running the command: sudo apt-get install alfresco-community


sayangnya setelah kucoba, tidak menampakkan hasil yang bagus.

Tapi karena ubuntunya udah keinstall, padahal sebelumnya, RHEL 5.3 udah kuinstal, tapi gapapa , in the name of knowledge, kucoba semua ...

pertama-tama yang dibutuhkan tentunya Pake instalasinya si alfresco sendiri. mulanya aku pake alfresco yang versi 3.2, yang kudonlod di
http://process.alfresco.com/ccdl/?file=release/community/build-2039/Alfresco-Community-3.2-Linux-x86-Install

tapi, sepertinya, versi ini meninggalkan banyak masalah, seperti file properti yang ga ada, akibatnya, konfigurasinya jadi sulit. akhirnya, aku menggunakan alfresco lab versi 3, yang sebelumnya udah di download. Nama paket dari alfresconya adalah :

Alfresco-Labs-3Stable-Linux-x86-Install


langkah selanjutnya, karena ubuntu server nya ini kondisinya masi minimalis, belum diinstall apa-apa, jadi harus disiapkan dulu, seperti
1. paket open office
2. paket pdf2swf
3. paket java sdk
4. paket image magic
5. paket Xlib

Karena di sini menggunakan ubuntu server, jadinya perintahnya seperti ini :

apt-get install imagemagick mysql-server xvfb swftools sun-java6-jdk sun-java6-jre nfs-common portmap
apt-get install imagemagick mysql-server xvfb swftools sun-java6-jdk sun-java6-jre nfs-common portmap --configure -a
apt-get install imagemagick mysql-server xvfb swftools sun-java6-jdk sun-java6-jre nfs-common portmap ia32-libs
apt-get install openoffice.org-core
apt-get install swftools


setelah semua paket terinstall , cukup lama nih buat instal-install seperti ini, padahal repositorynya udah di set ke indonesia.
more /etc/apt/sources.list
#
# deb cdrom:[Ubuntu-Server 9.04 _Jaunty Jackalope_ - Release i386 (20090421.1)]/ jaunty main restricted

#deb cdrom:[Ubuntu-Server 9.04 _Jaunty Jackalope_ - Release i386 (20090421.1)]/ jaunty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://id.archive.ubuntu.com/ubuntu/ jaunty main restricted
deb-src http://id.archive.ubuntu.com/ubuntu/ jaunty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://id.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted
deb-src http://id.archive.ubuntu.com/ubuntu/ jaunty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://id.archive.ubuntu.com/ubuntu/ jaunty universe
deb-src http://id.archive.ubuntu.com/ubuntu/ jaunty universe
deb http://id.archive.ubuntu.com/ubuntu/ jaunty-updates universe
deb-src http://id.archive.ubuntu.com/ubuntu/ jaunty-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://id.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb-src http://id.archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://id.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
deb-src http://id.archive.ubuntu.com/ubuntu/ jaunty-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://id.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
# deb-src http://id.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu jaunty partner
# deb-src http://archive.canonical.com/ubuntu jaunty partner

deb http://security.ubuntu.com/ubuntu jaunty-security main restricted
deb-src http://security.ubuntu.com/ubuntu jaunty-security main restricted
deb http://security.ubuntu.com/ubuntu jaunty-security universe
deb-src http://security.ubuntu.com/ubuntu jaunty-security universe
deb http://security.ubuntu.com/ubuntu jaunty-security multiverse
deb-src http://security.ubuntu.com/ubuntu jaunty-security multiverse


tapi masi aja lama, mungkin server repository ubuntu di indonesia sibuk banget karena banyak orang kaya aku yang download. hehehehe ...

ok , itu bagian instal-installnya

langkah selanjutnya instal alfresco

karena paket alfresco tadi berupa script jadi harus di buat supaya executable

chmod +x Alfresco-Labs-3Stable-Linux-x86-Install


setelah itu , barulah script dipanggil


./Alfresco-Labs-3Stable-Linux-x86-Install


This will install Alfresco Labs on your computer. Continue? [n/Y]
Where do you want to install Alfresco Labs? [/opt/Alfresco]
Installing Alfresco Labs...
Installing Program Files...
Installing Program Files Linux...
Installing Samples...
Installing WCM...
Installing WCM Linux...
Installation complete.


Pada tahap ini, Alfresconya sudah kita install. tahap selanjutnya adalah mengedit alfresco.sh dan virtual_alf.sh

ada 2 baris yang kita edit,
1. ALF_HOME
2. export JAVA_HOME

kita ubah menjadi

1. ALF_HOME=/opt/Alfresco
2. export JAVA_HOME="/usr/lib/jvm/java-6-sun-1.6.0.14/"



Setelah itu, konfigurasi database mysql nya


mysql -p < /opt/Alfresco/extras/databases/mysql/db_setup.sql


selanjutnya kita edit custom-repository.properties, letaknya ada di
/opt/Alfresco/tomcat/shared/classes/alfresco/extension/custom-repository.properties

yang di perbaiki antara lain :

#data location
dir.root=/opt/Alfresco/alf_data/

#executable location
ooo.user=${dir.root}/oouser
img.root=/usr
swf.exe=/usr/bin/pdf2swf

#database
db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://localhost/alfresco




kemudian, supaya bisa diakses via file sharing

more /opt/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/file-servers.properties
cifs.localname=knowledge.corp
cifs.domain=corp
cifs.broadcast=255.255.255.255


Lalu custom-hibernate-dialect.properties, lokasinya di
/opt/Alfresco/tomcat/shared/classes/alfresco/extension/custom-hibernate-dialect.properties


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


supaya bisa di start - stop otomatis, kita buat script otomatisnya

more /etc/init.d/alfresco
#! /bin/sh
# /etc/init.d/alfresco
#


# Start/Stop Script
export PATH=$PATH:/usr/local/bin/pdf2swf
case "$1" in
start)
Xvfb :1 -screen 0 1024x768x24 -fbdir /usr/src &
/opt/Alfresco/alfresco.sh start
xvfb-run -a /usr/lib/openoffice/program/soffice.bin -headless -accept="socket,port=8100;urp;" -display :1 &


# iptables -F
# iptables -t nat -F
# iptables -P INPUT ACCEPT
# iptables -P FORWARD ACCEPT
# iptables -P OUTPUT ACCEPT
# iptables -t nat -I PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 8080

/opt/Alfresco/virtual_alf.sh start
;;
stop)
/opt/Alfresco/alfresco.sh stop
/opt/Alfresco/virtual_alf.sh stop
;;
*)
echo "Usage: /etc/init.d/alfresco {start|stop}"
exit 1
;;
esac


exit 0



setelah itu,
update-rc.d alfresco defaults

sampai di sini, semuanya udah selesai, dan selanjutnya kita reboot alfresco.
Untuk memastikan apakah servernya normal, kita cek dulu di lognya


14:02:03,471 INFO [org.alfresco.config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
14:02:26,243 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
14:02:27,074 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
14:02:31,882 INFO [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /opt/Alfresco/alf_data
14:02:31,959 INFO [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply ...
14:02:32,393 INFO [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
14:02:32,396 INFO [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
14:02:33,565 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_14-b08; maximum heap size 506.313MB
14:02:33,566 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Labs): Current version 3.0.0 (Stable 1526) schema 1002 - Installed version 3.0.0 (Stable 1526) schema 1002
14:03:07,565 INFO [org.alfresco.web.scripts.DeclarativeRegistry] Registered 67 Web Scripts (+0 failed), 71 URLs
14:03:07,567 INFO [org.alfresco.web.scripts.AbstractRuntimeContainer] Initialised Presentation Web Script Container (in 715.465ms)


Kalau dari log di atas, sepertinya servernya udah up. sekarang kita tes dulu
1. konek via ftp

ftp localhost
Connected to localhost.
220 FTP server ready
Name (localhost:alfresco): admin
331 User name okay, need password for admin
Password:
230 User logged in, proceed
Remote system type is UNIX.
ftp> ls
200 Port OK
150 File status okay, about to open data connection
drw-rw-rw- 1 user group 0 Jan 1 1970 Alfresco
drw-rw-rw- 1 user group 0 Jan 1 1970 AVM
226 Closing data connection
ftp> cd Alfresco
250 Requested file action OK
ftp> ls
200 Port OK
150 File status okay, about to open data connection
drw-rw-rw- 1 user group 0 Aug 12 10:30 Data Dictionary
drw-rw-rw- 1 user group 0 Aug 12 10:30 Guest Home
drw-rw-rw- 1 user group 0 Aug 12 10:30 User Homes
drw-rw-rw- 1 user group 0 Aug 12 10:30 Sites
drw-rw-rw- 1 user group 0 Aug 12 10:30 Web Projects
drw-rw-rw- 1 user group 0 Aug 12 12:52 Customer Service Retail
226 Closing data connection
ftp> ls
200 Port OK
150 File status okay, about to open data connection
-rw-rw-rw- 1 user group 370361 Aug 12 12:04 Managing_Alfresco_Content_from_within_Microsoft_Office.pdf
-rw-rw-rw- 1 user group 2867446 Aug 12 12:00 ECM_InstallConfigure_CommunityEdition32.pdf
-rw-rw-rw- 1 user group 3496809 Aug 12 11:56 Getting_Started_with_Explorer_DM_for_Alfresco_Community_Edition_3_2.pdf
-rw-rw-rw- 1 user group 808574 Aug 12 11:56 Getting_Started_with_Share_for_Alfresco_Community_Edition_3_2.pdf
-rw-rw-rw- 1 user group 1727138 Aug 12 11:56 Getting_Started_with_WCM_for_Alfresco_Community_Edition_3_2.pdf
-rw-rw-rw- 1 user group 370361 Aug 12 12:04 Managing_Alfresco_Content_from_within_Microsoft_Office (Working Copy).pdf
226 Closing data connection
ftp>



cihuiii ... bisa lewat ftp, sekarang kita coba buka lewat sharing file


gambar 1


sekarang login via web




gambar 2


gambar 3


gambar 4


gambar 5

Seperti itulah tahapan install alfresco. Untuk bagaimana cara pakainya ... sedang dibaca dulu ... huhuhuhu ....

sumber :
http://wiki.alfresco.com/wiki/Installing_Alfresco_Lab_3_Stable_on_Ubuntu_8.10
http://wiki.alfresco.com/wiki/Installing_Alfresco_on_Ubuntu_8.04
http://wiki.alfresco.com/wiki/Installing_Labs_3_Stable_on_Debian_Etch
http://wiki.alfresco.com/wiki/Download_Community_Edition

Komentar

Postingan Populer