2009年6月5日 星期五

FreeBSD - KowledgeTree 安裝


KnowledgeTree Installation Notes for freeBSD-6.*
------------------------------------------------

* This sample installation steps was done under freeBSD-6.0.
The steps should apply to freeBSD-6.1 as well.

* This sample installation steps was done under a jail environemnt.
Again, the steps should apply to normal non-jail environment.

* It is assumed that you have the ports tree updated etc.

* ** Pre-knowledgeTree installation **

* Install apache-2.2
# (cd /usr/ports/www/apache22; make; make install)

* Install mysql-5.0
# (cd /usr/ports/databases/mysql50-server; make; make install)

* Install php-4.4
# cd /usr/ports/lang/php4
# make config
# #enable 'Build Apache module'
# make
# make install

* Install php4-modules that are needed
# cd /usr/ports/lang/php4-extensions
# make config
# enable the following modules
# FileInfo, Gettext, MySQL, Session
# make
# make install

* enable apache, mysql
# vi /etc/rc.conf
# add in the following 2 lines to enable the services
apache22_enable="YES"
mysql_enable="YES"

* ** knowledgeTree installation **
Note: The knowledgeTree folder is installed under http://kthost/knowledgeTree

* Download knowledgeTree.tgz

* Untar knowledgeTree.tgz
# tar -C /path/to/your/html/directory/ knowledgeTree.tgz
# cd /path/to/your/html/directory/; chmod 755 `find knowledgeTree -type d`

* Configure your web server to access the KnowledgeTree system.

- Config /usr/local/etc/apache22/httpd.conf
Under section ,
add in the following lines to enable php

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

- Config /usr/local/etc/php.ini
if it is not there, create it

Add the following line to php.ini

memory_limit = 32M
display_errors = On
display_startup_errors = On
post_max_size = 32M
upload_max_filesize = 32M

Due to the many different configuration possibilities, these can not
all be discussed here. Please consult the KnowledgeTree Wiki system
at http://support.ktdms.com/confluence/ to see what others have done
on your platform, and discuss the pros and cons of various options on
the KnowledgeTree Forums at http://forum.ktdms.com/

* Start up the servers
/usr/local/etc/rc.d/apache22.sh start
/usr/local/etc/rc.d/mysql-server.sh start

* Check the pre-installation checkup. Go to:

http://kthost/knowledgeTree/setup/

* Fixing problems presented in the pre-installation checkup

- Session save path /tmp
Make sure /tmp is mode 1777

- KnowledgeTree must be able to write to the log and Documents directories
# cd /path/to/your/html/directory/;
# cd knowledgeTree/var
# chown www:www log Documents

- The remaining folders should preferably not be able to be written
to by your web server.


* Check the post-installation checklist:

If your knowledgeTree installation is at http://localhost/, go to:

http://localhost/setup/

And click on "Post-installation checkup".

* Set up the database
- Create a database:
$ mysqladmin -p create dms

- Create and populate the tables:
$ mysql -p dms < dbhost =" localhost" dbname =" release206" dbuser =" myuser" dbpass =" mypassword" vardirectory =" /var/knowledgeTree" emailserver =" your/mail/server" without_x11="1;">

文章出自: http://wiki.knowledgetree.com/FreeBSD6-install-howto

沒有留言:

張貼留言