zoukankan      html  css  js  c++  java
  • DotProject安装配置笔记(转载)

    原文地址:http://liurongming.blog.163.com/blog/static/105301442200811193134538/

    dotproject 是一个很不错开源项目管理系统,http://www.dotproject.net

    官方站点提供了DEMO: http://www.dotproject.net/demo/

    管理员:admin/admin    普通用户:guest/guest

    中文版目前用的是dotproject 2_1_2_UTF-8_Chinese_by_GENE

    前提条件:有AMP环境(部署了apache,mysql,php)

    安装步骤:

    1.创建数据库和mysql用户

    mysql> CREATE DATABASE dotproject;

    mysql> GRANT ALL PRIVILEGES ON dotproject.* TO dotproject@localhost IDENTIFIED BY "yourpassword" WITH GRANT OPTION;

    mysql -uroot -p 回车(默认安装时没密码)然后执行下面语句。

        CREATE DATABASE dotproject; (建立数据库)  

        GRANT ALL PRIVILEGES ON dotproject.* TO dotproject@localhost IDENTIFIED BY 'password'; (建用户和密码)

    2.解压dotproject 2_1_2_UTF-8_Chinese_by_GENE到AMP的www目录下,改目录名为dotproject。注意要用这个utf-8版本,从dotproject下载的版本中文会乱码。 

      修改配置文件,dotproject/include/下面有个默认的config-dist.php,复制一个并重命名为config.php,然后编辑这个config.php文件:

    数据库配置

    $dPconfig['dBType'] = "mysql";      // ONLY MySQL is supported at present

    $dPconfig['dbhost'] = "localhost"; //数据库服务器名称,一般不用修改

    $dPconfig['dbname'] = "dotproject";  // 刚才创建的数据库名称

    $dPconfig['dbuser'] = "dotproject";  // 数据库用户名称

    $dPconfig['dbpass'] = "'password'";  // 上面那个用户的密码

    $dPconfig['dbport'] = "3306";  // 修改为你的mysql的端口,如果你自己没改过的话这里不用动了

    3.重启AMP服务,打开网址:http://localhost/dotproject/install/index.php,则可以完成安装过程,包括数据库的建立。

    4.到http://localhost/dotproject登陆,用户:admin 密码:passwd。

        到system admin->Default User Preferences ,设置默认语言为简体中文。

     ok,完成安装。

    附:安装后可能用到的一些修改:

    1.-------------解决dotproject中文名文件下载乱码问题-----------------------

    【问题】
    文件管理,上传中文文件名的文件,下载时候文件名出现乱码。
    【解决】
    还是编码问题,需要转码。
    打开根目录下的fileviewer.php文件,找到以下代码:

    <?php
    ……
    header('MIME-Version: 1.0');
    header( 'Pragma: ');
    header( 'Cache-Control: public');
    header( 'Content-length: '.$file['file_size'] );
    header( 'Content-type: '.$file['file_type'] );
    header( 'Content-transfer-encoding: 8bit');
    header( 'Content-disposition: attachment; filename="'.$file['file_name'].'"' );
    ……
    修改为:

    <?php
    ……
    header('MIME-Version: 1.0');
    header( 'Pragma: ');
    header( 'Cache-Control: public');
    header( 'Content-length: '.$file['file_size'] );
    header( 'Content-type: '.$file['file_type'] );
    header( 'Content-transfer-encoding: 8bit');
    header( 'Content-disposition: attachment; filename="'.iconv("UTF-8","gb2312",$file['file_name']).'"' );

  • 相关阅读:
    jvm
    java8新特性Lambada,Steam流
    数组链表栈队列 散列表
    数据结构算法基本知识
    设计模式七大原则
    java关键字
    Excel导出(适合项目开发)
    Excel导出(适合初学者)
    angular.min.js:80 Error:
    angular中出现错误的提示指令[ng:areq]的原因
  • 原文地址:https://www.cnblogs.com/mfryf/p/2349332.html
Copyright © 2011-2022 走看看