In Trac, there are a official online installation guide for Trac0.11 version. As you can see when the official 0.11 version not yet released, I installed the 0.11b1 version. http://trac.edgewall.org/wiki/TracInstall # TracInstallationGuidefor0.11 one, Trac About
Trac is a lightweight project management tool is a web-based applications. Trac is the development of the Python language, requires a database ( SQLite , PostgreSQL , MySQL , etc.) support to run. For HTML rendering, Trac 0.11 version before using ClearSilver , later recommended using Genshi
Second, install the necessary software version of the software and pay attention to the order of installation
1 install Python , download: python-2.5msi, installed by default
2 Installing Genshi template system, page belongs to the presentation layer, download Genshi-0.4.4.win32.exe, the installation will identify the Python installation directory.
3 Install Subversion Python Bindings: svn-python-1.4.6.win32-py2.5.exe, the installation will identify the Python installation directory.
4 install pysqlite , download pysqlite-2.4.0.win32-py2.5.exe, the installation will identify the Python installation directory. PySQLite SQLite and Python bindings are lightweight database engine, which is the default Trac database.
Third, the installation of Trac (0.11dev)
Since I use the latest version of the software are installed Trac to waste a lot of time, Tell me later, or Internet articles to get it.
1 best added python environment variable (C: \ Python25) to the path of
2 Make sure to install setuptools , installation steps are as follows: in the home will ez_setup.py Download saved (such as on the c: \ src below), enter the directory command line to install and execute python ez_setup.py corresponding python version of setuptools.
3.check a Trac repository and then install the full implementation of the statement is as follows:
> cd C:\src> python ez_setup.py> svn checkout http://svn.edgewall.org/repos/trac/trunk> cd trunk> python setup.py ins
4, configuration Trac environment after completion of the installation, you can create a TracEnvironment, which is where Trac stores information like wiki pages, tickets, reports, settings, etc.
1 through trac-admin to create a Trac Environment
My approach is to first create a new disk in the d trac Directory, then run :> trac-admin d:/trac/mytest initenv Then prompted to enter the project name (myproject), Database connection string ( Default ), Your source code repository path . 2. Single project on port 8080 run
| > Cd C: \ Python25 \ Scripts
> Tracd-p 8080 d: / trac / mytest
When you see Serving on 0.0.0.0:8080 view at http://127.0.0.1:8080/ , It indicates that the server started successfully , You can open the browser , See the following renderings :
Five. Apache + SVN and Trac Integrated The above configuration is running on a separate server, can run only one project , Generally used only for their own stand-alone access taking into account our previous installation SVN Is transported Apache server on line , We also made the best run in Trac Apache Server for easy online sharing : And there are many advantages and Apache integration , Such as full use of apache The powerful and efficient ModPython , Easy to manage and control, easily supporting ssl Etc. in the official installation guide available on the website provided above three Ways CGI, FastCGI and mod_python. To improve performance, it is recommended to use the last two , I installed a third used . 1. In http://www.modpython.org/ Download the appropriate installer page, note the corresponding version . I downloaded the mod_python-3.3.1.win32-py2.5-Apache2.2.exe, And installation, will be asked to select the installation process apache Installation directory, and automatically mod_python.so Copied to the modules directory . Even after the completion of the configuration, similar to the SVN And apache integration , My main reference is the official document .
2, the configuration
- Configuration ModPython
In the apache httpd.conf file add the following line:
LoadModule python_module modules / mod_python.so
- Configure trac
In the apache httpd.conf file add the following contents:
# Setup trac on mod_python
<location> / trac / mytest>
PythonOption TracEnv d: / trac / mytest # modified based on individual installation
PythonOption TracUriRoot / trac / mytest
- Then by http://localhost/trac/myjava to access, click on "Browse source code" can see the svn repository on project resources.
3. Configuring user authentication
Trac can use Apache's authentication.
- Create a password file, such as myjava create the password file, javatrac user name:
Go to% Apache% \ bin> htpasswd-cd: / trac / mytest / conf / trac.passwd javatrac
New password: ****
Re-type new password: ****
Adding password for user zhengjian
If you do not want to encrypt the password can use the-cp argument, win platform default is MD5 encrypted.
- # Configure the authentication settings myjava the Trac user authentication
<location> / trac / mytest / login>
AuthUserFile d: / trac / mytest / conf / trac.passwd
After restart the Apache server, then browse http://localhost:8080/trac/mytest , click Login, you will see the following renderings:
4, Trac Trac 0.11 authorization settings in the previous version need to install the WebAdmin plug-in to manage the web-user and authorization is not needed later, and has been integrated. Created in front of Apache authentication, do not have TRAC_ADMIN permission, here we create a new admin user, then grant TRAC_ADMIN permissions:
| # Create an admin user the command line to% Apache% \ bin> htpasswd-cd: / trac / mytest / conf / trac.passwd admin
New password: *****
Re-type new password: *****
Adding password for user admin
# For the admin user authorization TRAC_ADMIN
After the completion of the admin account Login, you will see later in search of the Admin, click into the map you can see the following results:
At this point, Apache + SVN + Trac integration of this finished, because I use all the current latest version, I spent nearly three days, although the interface is still English, but finally up and running, do the following is a closer look at how to better use. I was the first time using this management track project, welcome to explore each other.
http://trac.edgewall.org/wiki/TracInstall # Short-Installareleasedversion