windows of Apache + SVN + Trac installation and configuration (b)

2007-12-26  来源:本站原创  分类:Development  人气:205 

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>
    SetHandler mod_python
    PythonInterpreter main_interpreter
    PythonHandler trac.web.modpython_frontend
    PythonOption TracEnv d: / trac / mytest # modified based on individual installation
    PythonOption TracUriRoot / trac / mytest
    </ Location>
  • 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>
    AuthType Basic
    AuthName myjavatrac
    AuthUserFile d: / trac / mytest / conf / trac.passwd
    Require valid-user
    </ Location>

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
> Cd c: / python25/Scripts
> Trac-admin d: / trac / mytest permission add admin TRAC_ADMIN # this command is executed an exception, but does not affect the authority, I do not know where the problem is

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:

windows of Apache + SVN + Trac installation and configuration (b)

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.

Reference:
http://trac.edgewall.org/wiki/TracInstall # Short-Installareleasedversion
http://blog.chinaunix.net/u/30647/showart_240570.html
http://www.hamo.cn/archives/397.html
http://www.yi-dao.com/wiki/ow.asp?Trac

相关文章
  • windows of Apache + SVN + Trac installation and configuration (a) 2007-12-26

    Although the original are using Subversion, but not using a http server, using the svnservice.exe installed as window services. The original configuration has not unified development environment, a good effort to get the flowers look like to build a

  • windows of Apache + SVN + Trac installation and configuration (b) 2007-12-26

    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

  • Windows environment based on the Apache SVN server installation and configuration 2007-06-19

    Today had wanted to do some own code based on the http protocol management and later for various reasons do not have time and experience to engage, but I found an article online in the windows under the configuration process is now being covered up.

  • Video tutorial: svn + apache-based installation and configuration 2011-03-22

    Click here to view: http://www.svnclub.com/sites/default/files/svnclub_vedio_2.htm Related Software: a: svn server software: Setup-Subversion-1.6.13.msi b: svn client: TortoiseSVN-1.6.12.20536-x64-svn-1.6.15.msi c: pache server software: httpd-2.2.15

  • centos5 server set up notes: SVN (subversion) installation and configuration 2010-12-21

    SVN installation and configuration Technology is installed ready to check the package your_package # Rpm-qa | grep your_package Installation your_package package # Rpm-ivh your_package Or # Rpm-Uvh your_package Step 1, check for and install SVN and m

  • Windows, Nginx + PHP5 (FastCgi) Detailed installation and configuration 2011-01-11

    Nginx As a support a lightweight PHP WEB server, PHP website construction in a growing number of applications received, the recent Windows platform configured Nginx + PHP5 installation of the operating environment, very convenient, are detailed under

  • SVN plug-in installation and configuration of MyEclipse8.X 2010-07-30

    Before the MyEclipse6.5 version. To install the SVN plug-in is a very easy task. However, after the commencement of installation of SVN plugin MyEclipse8.X is not so easy, say with a lot of online "help-> Software Updates-> find and install (if

  • SVN Server installation and configuration under ubuntu 2011-05-31

    A, SVN Installation 1. Installer $ Sudo apt-get install subversion 2. Add svn subversion user and group management $ Sudo adduser svnuser $ Sudo addgroup subversion $ Sudo addgroup svnuser subversion 3. Create project directory $ Sudo mkdir / home /

  • Apache and Tomcat Installation and Configuration Guide 2009-06-12

    1. The required packages j2sdk-1_4_1_02-linux-i586 Apache2.0.40 (Red Hat Linux) jakarta-tomcat-4.1.18 jakarta-tomcat-connectors-4.1.18 2. Package Download (1) Java J2SE1.4.1 URL: http://java.sun.com/j2se/1.4.1/download.html (2) Apache2.0.40 URL: http

  • linux + apache + php + mysql installation and configuration documentation 2010-04-09

    First, install mysql (Mysql-5.0.21.tar.gz) cp Mysql-5.0.21.tar.gz / home cd / home tar zxf Mysql-5.0.21.tar.gz cd Mysql-5.0.21 . / Configure - prefix = / usr / local / mysql - sysconfdir = / etc - localstatedir = / var / lib / Mysql / Description: #

  • linux under the Apache + PHP + MySQL Installation and Configuration Guide 2011-03-07

    1 download apache, I am here to download the source package is httpd-2.0.64.tar.gz apache on the following page to download the source code for Linux package http://www.apache.org/dist/httpd/ ; Save to / home / xx directory, xx is self folder, I buil

  • linux under apache reverse proxy installation and configuration 2010-05-28

    apache2.2.x installed under the 1. / Configure - prefix = / usr/local/apache2 - Enable-mods-shared = all - Enable-so - Enable-rewrite 2 make 3 make install 4 / usr/local/apache2/bin/apachectl-k start Down is a proxy configured in the configuration un

  • . Windows environment based on the Apache SVN server configuration and summary of problems 2010-05-08

    1.Windows environment based on the Apache SVN server installation and configuration 1.1 Installation Installing Apache 1.1.1 (1) Download Apache Address http://httpd.apache.org/download.cgi Note: Apache 2.0.54 version of Windows than there are compil

  • Conquest of Apache + SVN 2010-08-18

    It is not know if this post into which category on the JE where appropriate, with the SVN that project slightly reluctantly into the project management it! SVN used for a long time, but no opportunity to configure. When previous work is technical dir

  • windows installed on Apache's SVN server (including SSL configuration) 2010-07-14

    1. Introduction 2. Installation 2.1. Install Apache 2.2. Install Subversion 2.3. Configuration 2.4. To use SSL to protect your server Summary This article is TortoiseSVN1.3.5 to help configure the server on a translation, wording needs to be done acc

  • Apache + php + mysql under the windows installation and configuration diagrams (change) 2010-04-14

    First ready software: Download the official Apache: apache_2.0.55-Win32-x86-no_ssl.msi , more versions here ; Download the official php: PHP-5.0.5-win32.zip , more mirror download address , more version of the download ; Download the official mysql:

  • svn + apache linux following the installation and configuration 2010-06-30

    Linux systems APACHE SVN server set up the whole process of a first related to the installation package is ready, I am here using the following several packages Apr: apr-1.2.11.tar.gz and apr-util-1.2.2.tar.gz Apache: httpd-2.2.6.tar.gz Subversion: s

  • APACHE + SVN under Windows XP installation 2010-11-11

    First, the software is ready Setup-Subversion-1.6.6.msi, Download: http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=11151&expandFolder=11151&folderID=11149 httpd-2.2.17-win32-x86-no_ssl.msi, Download: http://www.meisei-u.ac.jp/mi

  • The following svn + apache linux installation and configuration 2010-06-30

    APACHE SVN under Linux server set up the whole process of a first related to the installation package is ready, I am using here is the following a few packages Apr: apr-1.2.11.tar.gz and apr-util-1.2.2.tar.gz Apache: httpd-2.2.6.tar.gz Subversion: su

  • Apache in the windows installation and configuration diagrams 2011-08-22

    First, install Apache, a common web server configuration successful Download a good run " apache_2.0.55-Win32-x86-no_ssl.msi ", the following interface: Appear Apache HTTP Server 2.0.55 installation wizard interface, "Next" to continue