zoukankan      html  css  js  c++  java
  • 快速搭建Seeddms文档管理系统

        Seddms文档管理系统是开源的

    环境:

    Redhat6.5

    lamp

    01、LAMP的安装

    安装请看:http://www.cnblogs.com/xiaochina/p/6442337.html

    ###数据库采用mysql

    create database seeddms;

    grant all on seedms.*  to 'seeddms'@'%' identified by '123123';

    grant all on seedms.*  to 'seeddms'@'localhost' identified by '123123';

    ###数据库采用默认sqlite

    yum install -y sqlite sqlite-devel

    02、安装seedms查询依赖组件

    yum install  -y   php-ZendFramework    php-ZendFramework-Search-Lucene

    03、修改默认配置文件

    修改seeddmsconfsettings.xml

    • 修改server

      <!-- rootDir: Path to where SeedDMS is located
           - httpRoot: The relative path in the URL, after the domain part. Do not include the
           -           http:// prefix or the web host name. e.g. If the full URL is
          -           http://www.example.com/seeddms/, set $_httpRoot = "/seeddms/".
          -           If the URL is http://www.example.com/, set $_httpRoot = "/".
           - contentDir: Where the uploaded files are stored (best to choose a directory that
           -             is not accessible through your web-server)
           - stagingDir: Where partial file uploads are saved
           - luceneDir: Where the lucene fulltext index iѕ saved
           - logFileEnable: set false to disable log system
           - logFileRotation: the log file rotation (h=hourly, d=daily, m=monthly)
           - enableLargeFileUpload: support for jumploader
           - partitionsize: size of chunk uploaded by jumploader
           - dropFolderDir: where files for document upload are located
           - cacheDir: where the preview images are saved
        -->

    <server 
    
    rootDir="/var/www/html/seeddms/" 
    
    httpRoot="/seeddms/" 
    
    contentDir="/var/www/html/seeddms/data/" 
    
    stagingDir="/var/wwww/html/seeddms/data/staging/" 
    luceneDir="/var/www/html/seeddms/data/lucene/" 
    
    logFileEnable="true" logFileRotation="d" enableLargeFileUpload="true" partitionSize="2000000" cacheDir="/var/www/html/seeddms/data/cache/" 
    
    dropFolderDir="/var/www/html/seeddms/data/upload/">
    </server>

    参数说明

    <!-- coreDir: Path to SeedDMS_Core (optional)
           - luceneClassDir: Path to SeedDMS_Lucene (optional)
           - contentOffsetDir: To work around limitations in the underlying file system, a new
           -                   directory structure has been devised that exists within the content
           -                   directory ($_contentDir). This requires a base directory from which
           -                   to begin. Usually leave this to the default setting, 1048576, but can
           -                   be any number or string that does not already exist within $_contentDir. 
           - maxDirID: Maximum number of sub-directories per parent directory. Default: 0, use 31998 (maximum number of dirs in ext3) for a multi level content directory.
           - updateNotifyTime: users are notified about document-changes that took place within the last "updateNotifyTime" seconds
           - extraPath: Path to addtional software. This is the directory containing additional software like the adodb directory, or the pear Log package. This path will be added to the php include path
        -->

     <server coreDir="/var/www/html/seeddms/pear/SeedDMS/" 
     luceneClassDir="/var/www/html/seeddms/pear/SeedDMS/" contentOffsetDir="1048576" maxDirID="0" updateNotifyTime="86400" 
    extraPath="/var/www/html/seeddms/pear/" maxExecutionTime="30" cmdTimeout="1"> </server>

    修改数据库,sqlite默认的

     <!--
           - dbDriver: DB-Driver used by adodb (see adodb-readme)
           - dbHostname: DB-Server
           - dbDatabase: database where the tables for seeddms are stored (optional - see adodb-readme)
           - dbUser: username for database-access
           - dbPass: password for database-access
        -->   

    <database dbDriver="sqlite" dbHostname="localhost" dbDatabase="/var/www/html/seeddms/data/content.db" dbUser="seeddms" dbPass="seeddms" doNotCheckVersion="false">
    </database>

    如果需要设定mysql数据库可以注释掉sqlite

    <database dbDriver="mysql" dbHostname="localhost" dbDatabase="seeddms" dbUser="seeddms" dbPass="123123" doNotCheckVersion="false">

    </database

    建立install记录文件

    在seeddmsconf目录下建一个ENABLE_INSTALL_TOOL

    通过http://localhost/seeddms/install/install.php访问到安装界面了。在安装界面里勾上create_table 创建

    安装完毕,打开http://localhost/seeddms,就OK,默认登录用户admin/admin

     

     

    相关文件下载:

        http://pan.baidu.com/s/1jIyVhUQ

    官方下载:

       http://www.seeddms.org/index.php?id=7

  • 相关阅读:
    正当防卫与互殴的界限在哪里
    [php入门] 5、初学CSS从中记下的一些基础点(For小白)
    [ZigBee] 13、ZigBee基础阶段性回顾与加深理解——用定时器1产生PWM来控制LED亮度(七色灯)
    [ZigBee] 12、ZigBee之看门狗定时器——饿了就咬人的GOOD DOG
    [ZigBee] 11、ZigBee之睡眠定时器二
    [ZigBee] 10、ZigBee之睡眠定时器
    [ZigBee] 9、ZigBee之AD剖析——AD采集CC2530温度串口显示
    [ZigBee] 8、ZigBee之UART剖析·二(串口收发)
    [php入门] 4、HTML基础入门一篇概览
    [ZigBee] 2、 ZigBee开发环境搭建
  • 原文地址:https://www.cnblogs.com/xiaochina/p/6442523.html
Copyright © 2011-2022 走看看