{"id":239,"date":"2009-01-21T15:16:58","date_gmt":"2009-01-21T20:16:58","guid":{"rendered":"http:\/\/jianmingli.com\/wp\/?p=239"},"modified":"2011-11-16T12:23:07","modified_gmt":"2011-11-16T17:23:07","slug":"trac-issue-tracking-system","status":"publish","type":"post","link":"https:\/\/jianmingli.com\/wp\/?p=239","title":{"rendered":"Install Trac Issue Tracking System on Windows"},"content":{"rendered":"<p><strong>Install<\/strong><br \/>\nDownload and install Python (python-2.5.4.msi) from <a href=\"http:\/\/www.python.org\/download\/releases\/2.5.4\/\">Python site<\/a>. This also installs SQLite.<\/p>\n<p>Download and install Genshi (Genshi-0.5.1.zip) from <a href=\"http:\/\/genshi.edgewall.org\/wiki\/Download#Zippackage\">Genshi site<\/a><\/p>\n<pre>Genshi-0.5.1>c:\\Python25\\python setup.py install<\/pre>\n<p>Download and install Python setup tools (setuptools-0.6c9.win32-py2.5.exe) from <a href=\"http:\/\/pypi.python.org\/pypi\/setuptools\">its download site<\/a><\/p>\n<p>Download and install Trac (Trac-0.11.2.1.win32.exe) from <a href=\"http:\/\/trac.edgewall.org\/wiki\/TracDownload\">Trac site<\/a><\/p>\n<p><strong>Create a project environment<\/strong><\/p>\n<pre>\r\nC:\\Python25\\Scripts>trac-admin C:\/work\/trac initenv\r\nProject Name [My Project]>\r\nDatabase connection string [sqlite:db\/trac.db]>\r\nRepository type [svn]>\r\nPath to repository [\/path\/to\/repos]>\r\n...\r\n---------------------------------------------------------------------\r\nProject environment for 'My Project' created.\r\nYou may now configure the environment by editing the file:\r\n  C:\\work\\trac\\conf\\trac.ini\r\nIf you'd like to take this new project environment for a test drive,\r\ntry running the Trac standalone web server `tracd`:\r\n  tracd --port 8000 C:\\work\\trac\r\nThen point your browser to http:\/\/localhost:8000\/trac.\r\n<\/pre>\n<p><strong>Integrate with Apache 2.2 with mod_python<\/strong><br \/>\nDownload and install Apache 2.2 (apache_2.2.9-win32-x86-openssl-0.9.8h-r2.msi)<\/p>\n<p>Download and install mod_python (mod_python-3.3.1.win32-py2.5-Apache2.2.exe) from Apache mod_python <a href=\"http:\/\/httpd.apache.org\/modules\/python-download.cgi\">download page<\/a><\/p>\n<p>Add to Apache 2.2 httpd.conf file<\/p>\n<pre lang=\"xml\">\r\nLoadModule python_module modules\/mod_python.so\r\n<Location \/trac>\r\n  SetHandler mod_python\r\n  PythonInterpreter main_interpreter\r\n  PythonHandler trac.web.modpython_frontend \r\n  PythonOption TracEnv C:\/work\/trac\r\n  PythonOption TracUriRoot \/trac\r\n<\/Location><\/pre>\n<p>Start Apache 2.2 and point browser to<br \/>\nhttp:\/\/localhost:8080\/trac<\/p>\n<p><strong>Setup Authentication<\/strong><br \/>\nAdd to Apache 2.2 httpd.conf<\/p>\n<pre lang=\"xml\">\r\nLoadModule ldap_module modules\/mod_ldap.so\r\nLoadModule authnz_ldap_module modules\/mod_authnz_ldap.so\r\n\r\n<Location \/trac>\r\n  SetHandler mod_python\r\n  PythonInterpreter main_interpreter\r\n  PythonHandler trac.web.modpython_frontend \r\n  PythonOption TracEnv C:\/work\/trac\r\n  PythonOption TracUriRoot \/trac\r\n\r\n  Order allow,deny\r\n  Allow from all\r\n  \r\n  AuthType Basic\r\n  AuthBasicProvider ldap\r\n  AuthName \"Trac\"\r\n  AuthzLDAPAuthoritative off\r\n  \r\n  #OpenLDAP\r\n  AuthLDAPURL ldap:\/\/127.0.0.1:389\/ou=Users,dc=example,dc=com\r\n  AuthLDAPBindDN \"cn=Manager,dc=example,dc=com\"\r\n  AuthLDAPBindPassword \"secret\"\r\n  \r\n  #Active directory note port 3268 NOT 389\r\n  #AuthLDAPURL \"ldap:\/\/adserver.company.com:3268\/DC=company,DC=com?sAMAccountName?sub?(objectClass=user)\"\r\n  #AuthLDAPBindDN       ldap-auth-user@company.com\r\n  #AuthLDAPBindPassword \"the_password\"\r\n\r\n  Require valid-user\r\n<\/Location>\r\n<\/pre>\n<p><strong>Integrate with SVN<\/strong><br \/>\nDownload and install SVN binding for Python built for Apache 2.2 (svn-python-1.5.4.win32-py2.5.exe) from <a href=\"http:\/\/subversion.tigris.org\/servlets\/ProjectDocumentList?folderID=8100&#038;expandFolder=8100&#038;folderID=91\">SVN site<\/a><br \/>\nSet repository_dir in trac.ini<\/p>\n<pre lang=\"xml\">\r\n[trac]\r\nrepository_dir = C:\/svn\r\n<\/pre>\n<p>Restart Apache<\/p>\n<p><strong>trac-admin<\/strong><br \/>\nAdd admin user<\/p>\n<pre lang=\"xml\">\r\ntrac-admin \/path\/to\/my\/project\r\npermission add username TRAC_ADMIN\r\npermission list username<\/pre>\n<p><strong>Change Site Logo<\/strong><br \/>\nPlace custom logo image file in htdocs directory, e.g. trac_logo.png<br \/>\nEdit trac.ini<\/p>\n<pre lang=\"xml\">src = site\/trac_logo.png<\/pre>\n<p>References<br \/>\n<a href=\"http:\/\/trac.edgewall.org\/wiki\/TracOnWindows\">TracOnWindows<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install Download and install Python (python-2.5.4.msi) from Python site. This also installs SQLite. Download and install Genshi (Genshi-0.5.1.zip) from Genshi site Genshi-0.5.1>c:\\Python25\\python setup.py install Download and install Python setup tools (setuptools-0.6c9.win32-py2.5.exe) from its download site Download and install Trac (Trac-0.11.2.1.win32.exe) &hellip; <a href=\"https:\/\/jianmingli.com\/wp\/?p=239\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[10],"tags":[568],"class_list":["post-239","post","type-post","status-publish","format-standard","hentry","category-winos","tag-scm"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8cRUO-3R","_links":{"self":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=239"}],"version-history":[{"count":23,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/239\/revisions"}],"predecessor-version":[{"id":243,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/239\/revisions\/243"}],"wp:attachment":[{"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jianmingli.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}