Notes on installing Apache + SVN + Trac on win32

Source: Internet
Author: User
Tags tortoisesvn

1. Main software used

1.1 Basic Software

Apache2.0 apache_2.0.59-win32-x86-no_ssl.msi
SVN1.4.4 svn-1.4.4-setup.exe pay attention to the download is to choose with apache2.0 (not 2.2) compatible svn
TortoiseSVN-1.4.5.10425-win32-svn-1.4.5.msi TortoiseSVN1.4.5
Trac0.10.4 trac-0.10.4.win32.exe
Python2.4 python-2.4.3.msi
Svn_python interface svn-python-1.4.4.win32-py2.4.exe note version
Mod_python3.3.1 interface between mod_python-3.3.1.win32-py2.4-Apache2.0.exe trac and apache
Pysqlite2.3.4 pysqlite-2.3.4.win32-py2.4.exe python and sqlite Database Interface

1.2 plug-ins

Clearsilver-0.9.14.win32-py2.4.exe
SilverCity-0.9.7.win32-py2.4.exe
Webadminsvn trac Administrator web plug-in, you can manage trac on the web page
Accountmanage trac plug-in, which can be downloaded from trac.edgewall.org
Calendar
Discussionplugin
Gamedevtheme
Themeengineplugin topic Engine
Tracdefaulttheme default topic
Tracdown download plug-in
Visitcoutermacro traffic statistics

2. Installation

2.1 install Apache

All the way to next.

2.2 install SVN

The svn executable code is installed after next.
Install tortoisesvn and restart your computer.
Create the svn directory e:/SVN under the e Disk
Use tortoisesvn in E:/SVN to initialize the svn Environment

2.3 install Python

You can install python2.4 on C:/python24 after next.
Add the python installation directory to the path environment variable.

2.4 install TRAC

When you install Trac, the installer identifies the python installation directory. By default, you can install it.
For source code installation, run Python setup. py install.
After installation, create the TRAC directory e:/TRAC on the E drive.
Run Python trac-Admin E:/TRAC/Projects initenv in the $ Python/Script directory to initialize the TRAC environment.

2.5 install the interface plug-in

Install clearsilver
Install silvercity
Install pysqlite
Install mod_python
Install setuptool (available from pypi)
The installation of the above interface will automatically find the python installation directory. By default
Use Python setup. py bdist_egg to compile the TRAC plug-in, and copy the. Egg file under the DIST directory under each plug-in directory to the $ TRAC/Plugins directory.

3. Configuration

3.1 configure Apache

Create an auth directory under the $ Apache directory to store user authorization files
Use the htpasswd program under $ Apache/bin to generate the user/password pair file htpasswd-C passwd <user> <password>
Modify the httpd. conf file under $ Apache/conf:
Remove
Loadmodule dav_module modules/mod_dav.so
Loadmodule dav_fs_module modules/mod_dav_fs.so
Before two rows #
Add
Loadmodule dav_svn_module modules/mod_dav_svn.so
Loadmodule authz_svn_module modules/mod_authz_svn.so
Loadmodule python_module modules/mod_python.so
Three rows

Add
# For SVN
<Location/SVN>
Dav SVN
Svnpath E:/SVN
Authtype basic
AuthName "Subversion repositories"
AuthUserFile "auth/passwd"
Require valid-user
</Location>
# For trac
<Location/trac>
SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac. web. modpython_frontend
PythonOption TracEnv E:/TRAC/projects
PythonOption TracUriRoot/trac
SetEnv PYTHON_EGG_CACHE E:/TRAC/cache
</Location>

3.2 configure Trac

Run python trac-admin E:/TRAC/projects permission add <user> TRAC_ADMIN
Restart Apache
Enter http: // localhost/trac to enter the Trac page
Log on using <user> to view the Admin title bar.
Enabled all plug-ins
Modify the TRAC. ini file in E:/trac/projects/conf.
Add trac. web. auth. loginmodule = disabled under [components]
Restart Apache

Success

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.