Home  >  Article  >  Database  >  Ubuntu 8.04下配置项目管理工具Trac

Ubuntu 8.04下配置项目管理工具Trac

WBOY
WBOYOriginal
2016-06-07 16:52:551169browse

1.首先在Ubuntu 8.04下安装Trac2.创建env目录sudo mkdir /var/lib/trac //创建trac目录sudo chmod -R 777 /var/lib/trac //赋予读

1.首先在Ubuntu 8.04下安装Trac

2.创建env目录

sudo mkdir /var/lib/trac //创建trac目录
sudo chmod -R 777 /var/lib/trac //赋予读写权限
sudo trac-admin /var/lib/trac initenv //创建env目录

此时会有提示:

Project Name [My Project] trac //此时输入项目名称trac
Database connection string [sqlite:db/trac.db] //此时回车,默认为sqlite数据库
Repository type [svn] //此时回车,默认连接svn
Path to repository [/path/to/repos] /var/lib/svn //此时输入svn仓库路径 /var/lib/svn
Templates directory [/usr/share/trac/templates] //此时回车,自动在此目录创建模版,env创建完成

3.开启env
sudo tracd --port 8000 /var/lib/trac //开启8000端口,,使Trac可以通过:8000/trac在本机或IP地址运行

4.Apache(通过mod_python)下运行Trac

sudo apt-get install libapache2-mod-python //安装mod_python模块
sudo vim /etc/apache2/conf.d/trac.conf //创建trac.conf配置文件,在里面加上内容

SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /var/lib/trac


最后重启apache2。

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn