Difference between revisions of "SchoolOnffLine: Instalasi KnowledgeTree Digital Library"

From OnnoWiki
Jump to navigation Jump to search
Line 25: Line 25:
 
Copykan source knowldgeTree ke [[Web]] folder
 
Copykan source knowldgeTree ke [[Web]] folder
  
  # mv /usr/local/src/ktdms-src-oss-3.6.1.tgz /var/www/
+
  mv /usr/local/src/kt-src-oss-3.7.0.2.tgz /var/www/
  # cd /var/www
+
  cd /var/www
  # tar zxvf ktdms-src-oss-3.6.1.tgz  
+
  tar zxvf kt-src-oss-3.7.0.2.tgz
  # mv kt-dms-oss knowledgeTree
+
  mv kt-dms-oss knowledgeTree
  
 
Isi schema database MySQL dengan struktur database KnowledgeTree. Masukan password root dari MySQL setiap kali ditanyakan password,
 
Isi schema database MySQL dengan struktur database KnowledgeTree. Masukan password root dari MySQL setiap kali ditanyakan password,
  
  # mysql -u dms -pdms dms < /var/www/knowledgeTree/sql/mysql/install/structure.sql
+
  mysql -u dms -pdms dms < /var/www/knowledgeTree/sql/mysql/install/structure.sql
  # mysql -u dms -pdms dms < /var/www/knowledgeTree/sql/mysql/install/data.sql
+
  mysql -u dms -pdms dms < /var/www/knowledgeTree/sql/mysql/install/data.sql
  # mysql -u root -p dms < /var/www/knowledgeTree/sql/mysql/install/user.sql
+
  mysql -u root -p dms < /var/www/knowledgeTree/sql/mysql/install/user.sql
  
  
 
Konfigurasi knowledgeTree untuk menggunakan database
 
Konfigurasi knowledgeTree untuk menggunakan database
  
  # cd /var/www/knowledgeTree
+
  cd /var/www/knowledgeTree
  # vi config/config.ini
+
  vi config/config.ini
 +
 
 
  [db]
 
  [db]
 
  dbType      = mysql
 
  dbType      = mysql
Line 48: Line 49:
 
  dbPass      = djw9281js
 
  dbPass      = djw9281js
 
  dbPort      = default
 
  dbPort      = default
 
+
 
  dbAdminUser  = dmsadmin
 
  dbAdminUser  = dmsadmin
 
  dbAdminPass  = js9281djw
 
  dbAdminPass  = js9281djw
Line 60: Line 61:
 
Set [[PHP]] agar dapat menangani file besar
 
Set [[PHP]] agar dapat menangani file besar
  
  # vi /etc/php5/apache2/php.ini
+
  vi /etc/php5/apache2/php.ini
 +
 
 
  post_max_size 32M
 
  post_max_size 32M
 
  upload_max_filesize 32M
 
  upload_max_filesize 32M

Revision as of 14:18, 6 January 2010

Pertama-tama siapkan beberapa fasiltas pendukung KnowledgeTree seperti MySQL-server, PHP dll, antara lain dapat di install melalui perintah

# apt-get install libmysqlclient15-dev libphp-adodb libgd2-xpm libgd2-xpm-dev \
php5-mysql php5-gd php-pear postfix catdoc

Restart beberapa server yang di perlukan & pastikan jalan

/etc/init.d/postfix restart
/etc/init.d/apache2 restart
/etc/init.d/mysql restart


Siapkan MySQL menggunakan perintah

# mysql -u root -p
Enter password: 
create database dms;
grant INSERT,SELECT on root.* to dms@localhost;
grant ALL on dms.* to dms@localhost identified by "dms";
grant ALL on dms.* to dms identified by "dms";
exit


Copykan source knowldgeTree ke Web folder

mv /usr/local/src/kt-src-oss-3.7.0.2.tgz /var/www/
cd /var/www
tar zxvf kt-src-oss-3.7.0.2.tgz
mv kt-dms-oss knowledgeTree

Isi schema database MySQL dengan struktur database KnowledgeTree. Masukan password root dari MySQL setiap kali ditanyakan password,

mysql -u dms -pdms dms < /var/www/knowledgeTree/sql/mysql/install/structure.sql
mysql -u dms -pdms dms < /var/www/knowledgeTree/sql/mysql/install/data.sql
mysql -u root -p dms < /var/www/knowledgeTree/sql/mysql/install/user.sql


Konfigurasi knowledgeTree untuk menggunakan database

cd /var/www/knowledgeTree
vi config/config.ini
[db]
dbType       = mysql
dbHost       = localhost
dbName       = dms
dbUser       = dms
dbPass       = djw9281js
dbPort       = default

dbAdminUser  = dmsadmin
dbAdminPass  = js9281djw


Ubah owner folder knowledgeTree agar dapat di akses user Web

chown -Rf www-data.www-data /var/www/knowledgeTree
chmod -Rf 766 /var/www/knowledgeTree/var

Set PHP agar dapat menangani file besar

vi /etc/php5/apache2/php.ini
post_max_size		32M
upload_max_filesize	32M
memory_limit		32M


Restart Apache

# /etc/init.d/apache2 restart

Web Access untuk mensetup knowledgeTree melalui

http://192.168.0.254/knowledgeTree/setup

Web Access ke situs knowledgeTree

http://192.168.0.254/knowledgeTree

Default username & password yang digunakan adalah

admin admin



Pranala Menarik