Difference between revisions of "Instalasi KnowledgeTree"

From OnnoWiki
Jump to navigation Jump to search
(New page: Install KnowledgeTree in Ubuntu By: Onno W. Purbo # apt-get install libmysqlclient15-dev # apt-get install libphp-adodb # apt-get install libgd2-xpm libgd2-xpm-dev # apt-get install php5...)
 
Line 1: Line 1:
Install KnowledgeTree in Ubuntu
+
Pertama-tama siapkan beberapa fasiltas pendukung KnowledgeTree
By: Onno W. Purbo
+
seperti MySQL-server, PHP dll, antara lain dapat di install melalui perintah
  
 +
# apt-get install libmysqlclient15-dev
 +
# apt-get install libphp-adodb
 +
# apt-get install libgd2-xpm libgd2-xpm-dev
 +
# apt-get install php5-mysql
 +
# apt-get install php5-gd
 +
# apt-get install php-image-graph php-image-canvas php-pear
 +
# apt-get install postfix
 +
# apt-get install catdoc
  
# apt-get install libmysqlclient15-dev
+
Restart beberapa server yang di perlukan & pastikan jalan
# apt-get install libphp-adodb
 
# apt-get install libgd2-xpm libgd2-xpm-dev
 
# apt-get install php5-mysql
 
# apt-get install php5-gd
 
# apt-get install php-image-graph php-image-canvas php-pear
 
# apt-get install postfix
 
# apt-get install catdoc
 
  
 +
# /etc/init.d/postfix restart
 +
# /etc/init.d/apache2 restart
 +
# /etc/init.d/mysql restart
  
# /etc/init.d/postfix restart
+
Siapkan database untuk KnowledgeTree, disini akan digunakan
# /etc/init.d/apache2 restart
+
database dengan nama dms, user database dengan nama dms
# /etc/init.d/mysql restart
+
dan password untuk akses database adalah dms.
 +
Sedang password root MySQL di set sebagai password.
 +
Perintah yang digunakan untuk mengkonfigurasi adalah
  
 +
mysql
 +
mysql> SET PASSWORD FOR root@localhost=PASSWORD('password');
  
mysql
+
Jika password Root MySQL database sudah di set maka
mysql> SET PASSWORD FOR root@localhost=PASSWORD('password');
+
kita dapat langsung mengkonfigurasi MySQL menggunakan perintah
  
alternatively
+
# mysql -u root -p
 +
Enter password:
 +
mysql> create database dms;
 +
mysql> grant INSERT,SELECT on root.* to dms@localhost;
 +
mysql> SET PASSWORD FOR dms@localhost=PASSWORD('password_from_dms.conf');
 +
mysql> grant CREATE, INSERT, SELECT, DELETE, UPDATE on dms.* to dms@localhost;
 +
mysql> grant CREATE, INSERT, SELECT, DELETE, UPDATE on dms.* to dms;
 +
mysql> exit
  
# mysql -u root -p
 
Enter password:
 
mysql> create database dms;
 
mysql> grant INSERT,SELECT on root.* to dms@localhost;
 
mysql> SET PASSWORD FOR dms@localhost=PASSWORD('password_from_dms.conf');
 
mysql> grant CREATE, INSERT, SELECT, DELETE, UPDATE on dms.* to dms@localhost;
 
mysql> grant CREATE, INSERT, SELECT, DELETE, UPDATE on dms.* to dms;
 
mysql> exit
 
  
 +
Copykan source knowldgeTree ke Web folder
  
# cp knowledgeTree-3.3.6.tgz /var/www/
+
# cp knowledgeTree-3.3.6.tgz /var/www/
# cd /var/www
+
# cd /var/www
# tar zxvf knowledgeTree-3.3.6.tgz  
+
# tar zxvf knowledgeTree-3.3.6.tgz  
  
# cd /var/www/knowledgeTree
 
# mysql -p dms < sql/mysql/install/structure.sql
 
# mysql -p dms < sql/mysql/install/data.sql
 
# mysql -p dms < sql/mysql/install/user.sql
 
  
 +
Isi schema database MySQL dengan struktur database KnowledgeTree
  
# cd /var/www/knowldgeTree
+
# cd /var/www/knowledgeTree
# vi config/config.ini
+
# mysql -p dms < sql/mysql/install/structure.sql
[db]
+
# mysql -p dms < sql/mysql/install/data.sql
dbType = mysql
+
# mysql -p dms < sql/mysql/install/user.sql
dbHost          = localhost
 
dbName          = dms
 
dbUser          = dms
 
dbPass          = djw9281js
 
dbPort          = default
 
  
dbAdminUser      = dmsadmin
 
dbAdminPass      = js9281djw
 
  
[email]
+
Konfigurasi knowledgeTree untuk menggunakan database
emailServer = 127.0.0.1
 
emailPort = default
 
  
 +
# cd /var/www/knowldgeTree
 +
# vi config/config.ini
 +
[db]
 +
dbType      = mysql
 +
dbHost      = localhost
 +
dbName      = dms
 +
dbUser      = dms
 +
dbPass      = djw9281js
 +
dbPort      = default
  
# chown -Rf www-data.www-data /var/www/knowledgeTree
+
dbAdminUser  = dmsadmin
# chmod -Rf 766 /var/www/knowledgeTree/var
+
dbAdminPass  = js9281djw
  
# vi /etc/php5/apache2/php.ini
+
[email]
post_max_size 32M
+
emailServer = 127.0.0.1
upload_max_filesize 32M
+
emailPort = default
memory_limit 32M
 
  
 +
Ubah owner folder knowledgeTree agar dapat di akses user Web
  
# /etc/init.d/apache2 restart
+
# chown -Rf www-data.www-data /var/www/knowledgeTree
 +
# chmod -Rf 766 /var/www/knowledgeTree/var
  
 +
Set PHP agar dapat menangani file besar
  
Web Access To Setup
+
# vi /etc/php5/apache2/php.ini
http://localhost/knowledgeTree/setup
+
post_max_size 32M
 +
upload_max_filesize 32M
 +
memory_limit 32M
  
Web Access
+
 
http://localhost/knowledgeTree
+
Restart Apache
admin
+
 
admin
+
# /etc/init.d/apache2 restart
 +
 
 +
Web Access untuk mensetup knowledgeTree melalui
 +
 
 +
http://localhost/knowledgeTree/setup
 +
 
 +
Web Access ke situs knowledgeTree
 +
 
 +
http://localhost/knowledgeTree
 +
 
 +
Default username & password yang digunakan adalah admin & admin

Revision as of 04:27, 1 February 2008

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

# apt-get install libmysqlclient15-dev
# apt-get install libphp-adodb
# apt-get install libgd2-xpm libgd2-xpm-dev
# apt-get install php5-mysql
# apt-get install php5-gd
# apt-get install php-image-graph php-image-canvas php-pear
# apt-get install postfix
# apt-get install 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 database untuk KnowledgeTree, disini akan digunakan database dengan nama dms, user database dengan nama dms dan password untuk akses database adalah dms. Sedang password root MySQL di set sebagai password. Perintah yang digunakan untuk mengkonfigurasi adalah

mysql
mysql> SET PASSWORD FOR root@localhost=PASSWORD('password');

Jika password Root MySQL database sudah di set maka kita dapat langsung mengkonfigurasi MySQL menggunakan perintah

# mysql -u root -p
Enter password: 
mysql> create database dms;
mysql> grant INSERT,SELECT on root.* to dms@localhost;
mysql> SET PASSWORD FOR dms@localhost=PASSWORD('password_from_dms.conf');
mysql> grant CREATE, INSERT, SELECT, DELETE, UPDATE on dms.* to dms@localhost;
mysql> grant CREATE, INSERT, SELECT, DELETE, UPDATE on dms.* to dms;
mysql> exit


Copykan source knowldgeTree ke Web folder

# cp knowledgeTree-3.3.6.tgz /var/www/
# cd /var/www
# tar zxvf knowledgeTree-3.3.6.tgz 


Isi schema database MySQL dengan struktur database KnowledgeTree

# cd /var/www/knowledgeTree
# mysql -p dms < sql/mysql/install/structure.sql
# mysql -p dms < sql/mysql/install/data.sql
# mysql -p dms < sql/mysql/install/user.sql


Konfigurasi knowledgeTree untuk menggunakan database

# cd /var/www/knowldgeTree
# vi config/config.ini
[db]
dbType       = mysql
dbHost       = localhost
dbName       = dms
dbUser       = dms
dbPass       = djw9281js
dbPort       = default
dbAdminUser  = dmsadmin
dbAdminPass  = js9281djw
[email]
emailServer = 127.0.0.1
emailPort = default

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://localhost/knowledgeTree/setup

Web Access ke situs knowledgeTree

http://localhost/knowledgeTree

Default username & password yang digunakan adalah admin & admin