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']).'"' );

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值