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...)
 
 
(10 intermediate revisions by the same user not shown)
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 libphp-adodb libgd2-xpm libgd2-xpm-dev \
 +
php5-mysql php5-gd php-image-graph php-image-canvas php-pear postfix catdoc
  
# apt-get install libmysqlclient15-dev
+
Untuk Ubuntu 10.10
# 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 libphp-adodb libgd2-xpm libgd2-xpm-dev \
 +
php5-mysql php5-gd php-pear postfix catdoc
  
# /etc/init.d/postfix restart
+
Restart beberapa [[server]] yang di perlukan & pastikan jalan
# /etc/init.d/apache2 restart
 
# /etc/init.d/mysql restart
 
  
 +
/etc/init.d/postfix restart
 +
/etc/init.d/apache2 restart
 +
/etc/init.d/mysql restart
  
mysql
+
Siapkan [[database]] untuk KnowledgeTree, disini akan digunakan
mysql> SET PASSWORD FOR root@localhost=PASSWORD('password');
+
[[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
  
alternatively
+
mysql
 +
mysql> SET PASSWORD FOR root@localhost=PASSWORD('password');
  
# mysql -u root -p
+
Jika password Root MySQL database sudah di set maka
Enter password:
+
kita dapat langsung mengkonfigurasi MySQL menggunakan perintah
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:
 +
create database dms;
 +
grant INSERT,SELECT on root.* to dms@localhost;
 +
grant CREATE, INSERT, SELECT, DELETE, UPDATE on dms.* to dms@localhost identified by "dmspassword";
 +
grant CREATE, INSERT, SELECT, DELETE, UPDATE on dms.* to dms identified by "dmspassword";
 +
exit
  
# cp knowledgeTree-3.3.6.tgz /var/www/
+
atau yang lebih sederhana jika sedang belajar
# cd /var/www
 
# tar zxvf knowledgeTree-3.3.6.tgz
 
  
# cd /var/www/knowledgeTree
+
# mysql -u root -p123456
# mysql -p dms < sql/mysql/install/structure.sql
+
create database dms;
# mysql -p dms < sql/mysql/install/data.sql
+
grant ALL on root.* to dms@localhost;
# mysql -p dms < sql/mysql/install/user.sql
+
grant ALL on dms.* to dms@localhost identified by "dms";
 +
grant ALL on dms.* to dms identified by "dms";
 +
exit
  
 +
Copykan [[source code]] knowldgeTree ke [[Web]] folder
  
# cd /var/www/knowldgeTree
+
cp kt-src-oss-3.7.0.2.tgz  /var/www/
# vi config/config.ini
+
cd /var/www
[db]
+
tar zxvf kt-src-oss-3.7.0.2.tgz
dbType = mysql
+
mv ktgit-knowledgetree-c389d34/ knowledgeTree
dbHost          = localhost
 
dbName          = dms
 
dbUser          = dms
 
dbPass          = djw9281js
 
dbPort          = default
 
  
dbAdminUser      = dmsadmin
+
Isi schema [[database]] [[MySQL]] dengan struktur [[database]] KnowledgeTree. Masukan [[password]] root dari [[MySQL]] setiap kali ditanyakan [[password]],
dbAdminPass      = js9281djw
 
  
[email]
+
cd /var/www/knowledgeTree
emailServer = 127.0.0.1
+
mysql -p dms < sql/mysql/install/structure.sql
emailPort = default
+
mysql -p dms < sql/mysql/install/data.sql
 +
mysql -p dms < sql/mysql/install/user.sql
  
 +
Jika masih belajar dapat menggunakan perintah
  
# chown -Rf www-data.www-data /var/www/knowledgeTree
+
cd /var/www/knowledgeTree
# chmod -Rf 766 /var/www/knowledgeTree/var
+
mysql -p123456 dms < sql/mysql/install/structure.sql
 +
mysql -p123456 dms < sql/mysql/install/data.sql
 +
mysql -p123456 dms < sql/mysql/install/user.sql
  
# vi /etc/php5/apache2/php.ini
+
Konfigurasi knowledgeTree untuk menggunakan [[database]]
post_max_size 32M
 
upload_max_filesize 32M
 
memory_limit 32M
 
  
 +
# cd /var/www/knowldgeTree
 +
# vi config/config.ini
 +
[db]
 +
dbType      = mysql
 +
dbHost      = localhost
 +
dbName      = dms
 +
dbUser      = dms
 +
dbPass      = djw9281js
 +
dbPort      = default
  
# /etc/init.d/apache2 restart
+
dbAdminUser  = dmsadmin
 +
dbAdminPass  = js9281djw
  
  
Web Access To Setup
+
Ubah owner folder knowledgeTree agar dapat di akses user [[Web]]
http://localhost/knowledgeTree/setup
 
  
Web Access
+
chown -Rf www-data.www-data /var/www/knowledgeTree
http://localhost/knowledgeTree
+
chmod -Rf 766 /var/www/knowledgeTree/var
admin
+
 
admin
+
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
 +
 
 +
username admin
 +
password admin
 +
 
 +
 
 +
 
 +
 
 +
 
 +
==Pranala Menarik==
 +
 
 +
* [[Linux Howto]]
 +
 
 +
[[Category: Linux]]

Latest revision as of 08:13, 17 November 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-image-graph php-image-canvas php-pear postfix catdoc

Untuk Ubuntu 10.10

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 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: 
create database dms;
grant INSERT,SELECT on root.* to dms@localhost;
grant CREATE, INSERT, SELECT, DELETE, UPDATE on dms.* to dms@localhost identified by "dmspassword";
grant CREATE, INSERT, SELECT, DELETE, UPDATE on dms.* to dms identified by "dmspassword";
exit

atau yang lebih sederhana jika sedang belajar

# mysql -u root -p123456
create database dms;
grant ALL 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 code knowldgeTree ke Web folder

cp kt-src-oss-3.7.0.2.tgz  /var/www/
cd /var/www
tar zxvf kt-src-oss-3.7.0.2.tgz 
mv ktgit-knowledgetree-c389d34/ knowledgeTree

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

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

Jika masih belajar dapat menggunakan perintah

cd /var/www/knowledgeTree
mysql -p123456 dms < sql/mysql/install/structure.sql
mysql -p123456 dms < sql/mysql/install/data.sql
mysql -p123456 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


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

username admin
password admin



Pranala Menarik