SeedDMS安裝筆記

最近公司在準備導文檔系統,自己寫的話沒那麼多時間,加上也….懶
所以拿個opensource來交差比較快,這套Seeddms雖然小,該有的功能也都有,還支援多國語系,但缺點就是…搜尋沒人寫過繁中的教學@@所以就整理一下安裝心得,當備忘錄用。

1.      安裝apache, mysql, php
 
2.      解壓縮下載的seeddmsquickinstall來源檔(註:繁體中文語系翻譯很爛,可用zh-CN先修改後覆蓋)或是下載這個檔案覆蓋掉

3.將其中seeddms-4.3.x資料夾下所有內容,移動到根目錄下

4.若配合php5.3以上版本,修改date.timezone如下:
php.ini內要改為;
date.timezone = “Asia/Taipei”
修改seeddms內容
incinc.LogInit.php內要增加
date_default_timezone_set(‘Asia/Taipei’);
incinc.Utils.php內要增加
date_default_timezone_set(‘Asia/Taipei’);
outout.Calendar.php內要增加
date_default_timezone_set(‘Asia/Taipei’);
viewsbootstrapclass.AddEvent.php內要增加
date_default_timezone_set(‘Asia/Taipei’);

5.修改\apacheinstallpathhtdocsseeddmsconfsettings.xml

A.找到以下關鍵字rootDir, httpRoot, contentDir, stagingDir, luceneDir, cacheDir,做對應修改
rootDir=”apacheinstallpathhtdochtdocsseeddms”
httpRoot=”/seeddms/”
contentDir=”apacheinstallpathhtdocseeddmsdata”
stagingDir=”apacheinstallpathhtdocseeddmsdatastaging”
luceneDir=”apacheinstallpathhtdochtdocsseeddmsdatalucene”
cacheDir=”apacheinstallpathhtdochtdocsseeddmscache”

B.修改pear路徑,一樣搜尋關鍵字pear,改路徑如下參考
apacheinstallpathhtdocseeddmspear

C.內建的sqllite在中文檔案上傳時會呈現亂碼,故改新增mysql資料表
下面懶的翻譯
Create a new database on your web server
e.g. for mysql:
create database seeddms;
Create a new user for the database with all permissions on the new database
e.g. for mysql:
grant all privileges on seeddms.* to seeddms@localhost identified by ‘secret’;
(replace ‘secret’ with you own password)
Optionally import create_tables-innodb.sql in the new database
e.g. for mysql:
> cat create_tables-innodb.sql | mysql -useeddms -p seeddms
This step can also be done by the install tool.
create a file ENABLE_INSTALL_TOOL in the conf directory and point
your browser at http://hostname/seeddms/install
NOTE: UPDATING FROM A PREVIOUS VERSION OR SEEDDMS
As SeedDMS is a smooth continuation of LetoDMS there is no difference
in updating from LetoDMS or SeedDMS
make a backup archive of your installation folder
make a backup archive of your data folder
dump your current database
extract the SeedDMS archive to your web server
edit the conf/settings.xml file to match your previuos settings
(you can even replace the file with your own one eventualy adding by hand
the missing new parameters)

D.修改database路徑,搜尋關鍵字database dbDriver
database dbDriver=”mysql”
dbHostname=”localhost”
dbDatabase=”seeddms”
dbUser=”seeddms”
dbPass=”seeddms”

E.修改AD-ldap路徑

F.修改登入方式restricted=”false”

6.在\apacheinstallpathhtdocsseeddmsconf新建空檔案,檔名為ENABLE_INSTALL_TOOL
7.開啟http://127.0.0.1/seeddms/install/install.php,做測試安裝

8.點選apply後,移除ENABLE_INSTALL_TOOL
9.開啟http://127.0.0.1/seeddms/index.php
登入帳號預設為
admin
admin