在SugarCRM環境中 install 安裝 KnowledgeTree

原本SugarCRM的打包版就已經安裝好Apache、PHP、MySQL了,使用iNETDocs必須要再安裝KnowledgeTree,但KnowledgeTree的Sources版安裝方式實在是非常的不友善。


  1. 先至SourceForge Download 最新版本的KnowledgeTree Source版,我抓到的版本是3.5.4a,在SourceForge裡的KnowledgeTree不是正式版也不是試用版,是完全免費的Community版本。
  2. 解壓縮到SugarCRM內的htdocs資料夾下,我的路徑為C:\Program Files\sugarcrm\htdocs\kt
  3. 先按照官方wiki說的run一次setup看看。
    http://localhost/kt/setup/
    結果跳出500 Internal Server Error的訊息。
  4. 根據apache裡的error.log找到的結果如下
    [Fri Jan 09 16:56:45 2009] [alert] [client 127.0.0.1] C:/Program Files/sugarcrm/htdocs/kt/.htaccess: Invalid command 'ExpiresActive', perhaps mis-spelled or defined by a module not included in the server configuration
  5. 所以去KnowledgeTree的目錄裡找到.htaccess檔,將ExpiresActive屬性註解掉,包括下列一排的ExpiresByType也一併註解掉。
  6. 再run一次setup看看。
    http://localhost/kt/setup/
    我的狀況是,跳到404 Not Found
  7. 此時要去knowledgeTree裡找到config資料夾內的config.ini,我的路徑是C:\Program Files\sugarcrm\htdocs\kt\config\config.ini
  8. 更改rootUrl設為 /kt 之後再run一次
    http://localhost/kt/setup/
  9. 終於顯示畫面,但出現KnowledgeTree的error page,提示MySQL連線有問題。
  10. 按照官方wiki的說明,至MySQL內,先新增dms資料庫,接著依序匯入三個sql檔。
    sql檔位置在
    C:\Program Files\sugarcrm\htdocs\kt\sql\mysql\install
    順序為structure.sql、data.sql、user.sql
  11. 匯入完成後,回到config.ini裡更改mysql的連線帳密設定
    dbHost = localhost
    dbName = dms
    dbUser = dms
    dbPass = 亂碼產生
    dbPor = default
    dbAdminUser = dmsadmin
    dbAdminPass = 亂碼產生
    密碼亂碼產生部份,請開啟user.sql檔看密碼為何並依照更改。

    更改完成後再run一次
    http://localhost/kt/setup/
  12. 若是出現列表式的ON & OFF屬性,即代表成功了。
    此時回到KnowledgeTree首頁
    http://localhost/kt/
    嘗試使用預設帳號admin與預設密碼admin登入。

Comments

Popular posts from this blog

VS Code x GitLab 首次註冊使用教學 如何從 VSCODE 上傳到 gitLab

Sitemap v.s. Webmaster Tools