KnowledgeTree Community Edition
Main article: Document Management System
Contents |
Installing KnowledgeTree from universal installer
Download from http://sourceforge.net/projects/kt-dms/files/
$ tar -zxvf kt-ce-linux-universal-installer-3.7.tgz $ ./knowledgetree-community.sh
Go to http://localhost/knowledgetree to continue setup.
When finish configuring KnowledgeTree, login using the credentials: admin/admin
Starting KnowledgeTree service
The KnowledgeTree services need to be started to allow for optimal functioning of the search, indexing and pdf generation. To start the services, execute the dmsctl.sh shell script in the KnowledgeTree directory from a terminal.
cd /usr/share/knowledgetree-ce sudo ./dmsctl.sh start
Troubleshooting
Packages have unmet dependencies on Ubuntu 10.04
The following packages have unmet dependencies: knowledgetree-ce: Depends: swftools but it is not installable E: Broken packages
Resolution
$ add-apt-repository "deb http://archive.canonical.com/ lucid partner" $ apt-get update
Installing KnowledgeTree from source
PHP extension requirements
- IconV
- MySQL
- cURL
- XMLRPC
- Multi Byte Strings
- LDAP
- JSON
- Open SSL
Note: Bolded extension were not available by default
Install missing PHP extensions
$ apt-get install php5-curl $ apt-get install php5-xmlrpc $ apt-get install php5-ldap (optional)
Download and extract
Download and extract kt-src-oss-3.7.0.2.tgz from http://sourceforge.net/projects/kt-dms/files/
$ mkdir /opt/knowledgtree $ cd /opt/knowledgetree $ tar -zxvf kt-src-oss-3.7.0.2.tgz
Setup path and permissions
Set permission with read/write for www-data
- Configuration File:
/opt/knowledgetree/config/config.ini - Document Directory:
/opt/knowledgetree/var/Documents - Log Directory:
/opt/knowledgetree/var/log - Temporary Directory:
/opt/knowledgetree/var/tmp - Cache Directory:
/opt/knowledgetree/var/cache - Uploads Directory:
/opt/knowledgetree/var/uploads - Var Directory:
/opt/knowledgetree/var
Note: Defining directories outside of KnowledgeTree home directory doesn't seem to work properly
Change system generate database password
Modify setup/wizard/config/databases.xml
Run KnowledgeTree configuration wizard
After setting up KnowledgeTree inside Apache run http://localhost/knowledgetree from the browser.
Setting up the scheduler
The scheduler takes care of managing and running tasks or batch jobs at regular intervals in the background. To setup add the following to the cron job:
*/5 * * * * /usr/bin/php /opt/knowledgetree/bin/scheduler.php > /dev/null
Troubleshooting
Errors found in ./var/log/ktYYYY-mm-dd.root.log.txt log.
Output: sh: : Permission denied
Solution: define the php binary in System Administration.
- Go to Administration » System Configuration » General Settings » External Binaries
- Set Path to binary for
phpto/usr/bin/php
Connect error: Connection refused
Solution: if using virtual hosting for KnowledgeTree, overwrite Internal Server IP
- Go to Administration » System Configuration » General Settings » Server Settings
- Set Internal Server IP to virtual domain name e.g. knowledgetree.domain.com
Configuring KnowledgeTree
Disable/enable plugins
Example: To disable Drop Documents Plugin
- Log in as Administrator
- Click on Administration menu
- Click on Miscellaneous » Manage plugins
- Uncheck the Drop Documents Plugin check box
Allow anonymous users to log in
- Go to Administration » System Configuration » General Settings
- Check True for the Anonymous Login
Make folder readable to anonymous users
For the folder e.g. Public,
- Go to Actions on this folder » Permissions
- Click on Edit permission
- Add Role:Everyone with Read and Folder Details checked
Disable AJAX Dashboard
AJAX dashboard allows users to drag the dashlets to change the Dashboard display. Default is 'True'. To disable:
- Go to Administration » System Configuration » General Settings
- Scroll down to KnowledgeTree » Use AJAX Dashboard
- Check 'False'
Change custom favicon
Copy the custom favicon.ico to the directories:
/opt/knowledgetree /opt/knowledgtree/resources
Change company logo
- Go to Administration » System Configuration » User Interface Settings
- Scroll down to User Interface
- Make changes to Company Logo, Company Logo Title, and Company Logo Width
Note: Logo height must be 50px tall
Change main logo
Edit ./config/config.ini
; Main logo
mainLogo = ${rootUrl}/resources/docs_logo.png
; the logo's width in pixels
mainLogoWidth = 300px
; ALT text - for accessibility purposes.
mainLogoTitle = Vincent Kong Knowledge Management Systems
; URL on the main logo
mainLogoUrl = ${rootUrl}
Edit template
Edit ./templates/kt3/standard_page.smarty
Change logging level
- Go to Administration » System Configuration » General Settings
- Scroll down to KnowledgeTree section
KnowledgeTree WebDAV Server
Log for KTWebDAV not being written
Edit /opt/knowledgetree/ktwebdav/lib/KTWebDAVServer.inc.php.
In the function ktwebdavLog change the following:
$logger = &Log::singleton('file', '../../var/log/ktwebdav-' . date('Y-m-d') . '.txt', $ident, $conf);
to
global $default;
$logger = &Log::singleton('file', $default->logDirectory . '/ktwebdav-' . date('Y-m-d') . '.txt', $ident, $conf);
NetDrive doesn't work
Problem:
Can't upload, delete, save, change file names using NetDrive.
Solution:
NetDrive doesn't send a USER-AGENT header with request. Edit /lib/KTWebDAVServer.inc.php, change:
$this->ktwebdavLog("Unknown client. SafeMode needed.", 'info', true);
return false;
to
if ($this->safeMode == 'off') {
$this->ktwebdavLog("Unknown client with SafeMode Off.", 'info', true);
return true;
}
else {
$this->ktwebdavLog("Unknown client. SafeMode needed.", 'info', true);
return false;
}