{"id":735,"date":"2009-07-20T12:34:12","date_gmt":"2009-07-20T05:34:12","guid":{"rendered":"http:\/\/www.jfdesignnet.com\/?p=735"},"modified":"2009-07-20T12:34:12","modified_gmt":"2009-07-20T05:34:12","slug":"trac-on-klixs","status":"publish","type":"post","link":"https:\/\/www.jfdesignnet.com\/?p=735","title":{"rendered":"trac on klixs"},"content":{"rendered":"<p>Here is the trac config handler on mod_python.conf I use for trac mybiz3web development project :<\/p>\n<blockquote><p>&lt;Location \/mybiz3web&gt;<br \/>\nSetHandler mod_python<br \/>\nPythonInterpreter main_interpreter<br \/>\nPythonHandler trac.web.modpython_frontend<br \/>\nPythonOption TracEnv \/var\/www\/html\/mybiz3web<br \/>\nPythonOption TracUriRoot \/mybiz3web<br \/>\n&lt;\/Location&gt;<\/p><\/blockquote>\n<p>Add them to \/etc\/httpd\/modules.d\/16_mod_python.conf as a handler to apache web server.<\/p>\n<p>And I use this config to authenticate user via htpasswd password file :<\/p>\n<blockquote><p>&lt;LocationMatch \/mybiz3web\/login&gt;<br \/>\nAuthType Basic<br \/>\nAuthName &#8220;Trac Development MyBiz3Web&#8221;<br \/>\nAuthUserFile \/etc\/trac\/trac.htpasswd<br \/>\nRequire valid-user<br \/>\n&lt;\/LocationMatch&gt;<\/p><\/blockquote>\n<p>Put them also at \/etc\/httpd\/modules.d\/16_mod_python.conf as a LocationMatch directive for apache when user want to login to trac. As you may see the password file at \/etc\/trac\/trac.htpasswd. Create them or add user with htpasswd command.<\/p>\n<p>To add a new project for trac, simply follow like this :<\/p>\n<blockquote><p><span><strong><em>#trac-admin [project name] initenv<\/em><\/strong><\/span><\/p>\n<p><strong><em>Creating a new Trac environment at \/var\/www\/html\/electra<\/em><\/strong><\/p>\n<p><strong><em>Trac will first ask a few questions about your environment<br \/>\nin order to initalize and prepare the project database.<\/em><\/strong><\/p>\n<p><strong><em>Please enter the name of your project.<br \/>\nThis name will be used in page titles and descriptions.<\/em><\/strong><\/p>\n<p><strong><em>Project Name [My Project]&gt; electra<\/em><\/strong><\/p>\n<p><strong><em>Please specify the connection string for the database to use.<br \/>\nBy default, a local SQLite database is created in the environment<br \/>\ndirectory. It is also possible to use an already existing<br \/>\nPostgreSQL database (check the Trac documentation for the exact<br \/>\nconnection string syntax).<\/em><\/strong><\/p>\n<p><strong><em>Database connection string [sqlite:db\/trac.db]&gt;<\/em><\/strong><\/p>\n<p><strong><em>Please specify the type of version control system,<br \/>\nBy default, it will be svn.<\/em><\/strong><\/p>\n<p><strong><em>If you don&#8217;t want to use Trac with version control integration,<br \/>\nchoose the default here and don&#8217;t specify a repository directory.<br \/>\nin the next question.<\/em><\/strong><\/p>\n<p><strong><em>Repository type [svn]&gt;<\/em><\/strong><\/p>\n<p><strong><em>Please specify the absolute path to the version control<br \/>\nrepository, or leave it blank to use Trac without a repository.<br \/>\nYou can also set the repository location later.<\/em><\/strong><\/p>\n<p><strong><em>Path to repository [\/path\/to\/repos]&gt;<\/em><\/strong><\/p>\n<p><strong><em>Creating and Initializing Project<br \/>\nInstalling default wiki pages<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracSupport imported from TracSupport<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TitleIndex imported from TitleIndex<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/WikiDeletePage imported from WikiDeletePage<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracFineGrainedPermissions imported from TracFineGrainedPermissions<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/WikiHtml imported from WikiHtml<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/PageTemplates imported from PageTemplates<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracUnicode imported from TracUnicode<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracQuery imported from TracQuery<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracSyntaxColoring imported from TracSyntaxColoring<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracGuide imported from TracGuide<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/WikiRestructuredText imported from WikiRestructuredText<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/WikiFormatting imported from WikiFormatting<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/InterTrac imported from InterTrac<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracTimeline imported from TracTimeline<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracIni imported from TracIni<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracPlugins imported from TracPlugins<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracRss imported from TracRss<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracModPython imported from TracModPython<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/WikiStart imported from WikiStart<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracUpgrade imported from TracUpgrade<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracRoadmap imported from TracRoadmap<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracWorkflow imported from TracWorkflow<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracBrowser imported from TracBrowser<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracPermissions imported from TracPermissions<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracReports imported from TracReports<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/WikiRestructuredTextLinks imported from WikiRestructuredTextLinks<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracNavigation imported from TracNavigation<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracAdmin imported from TracAdmin<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracNotification imported from TracNotification<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracStandalone imported from TracStandalone<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracLinks imported from TracLinks<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracInstall imported from TracInstall<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracWikiMacros imported from TracWikiMacros<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/InterMapTxt imported from InterMapTxt<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracRevisionLog imported from TracRevisionLog<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracTicketsCustomFields imported from TracTicketsCustomFields<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracWiki imported from TracWiki<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracAccessibility imported from TracAccessibility<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracCgi imported from TracCgi<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/CamelCase imported from CamelCase<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/InterWiki imported from InterWiki<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/RecentChanges imported from RecentChanges<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/SandBox imported from SandBox<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracLogging imported from TracLogging<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/WikiProcessors imported from WikiProcessors<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracEnvironment imported from TracEnvironment<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/WikiNewPage imported from WikiNewPage<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracTickets imported from TracTickets<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracFastCgi imported from TracFastCgi<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracChangeset imported from TracChangeset<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracBackup imported from TracBackup<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracSearch imported from TracSearch<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracImport imported from TracImport<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/TracInterfaceCustomization imported from TracInterfaceCustomization<br \/>\n\/usr\/lib\/python2.4\/site-packages\/Trac-0.11b2-py2.4.egg\/trac\/wiki\/default-pages\/WikiPageNames imported from WikiPageNames<\/em><\/strong><\/p>\n<p><strong><em>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nProject environment for &#8216;electra&#8217; created.<\/em><\/strong><\/p>\n<p><strong><em>You may now configure the environment by editing the file:<\/em><\/strong><\/p>\n<p><strong><em>\/var\/www\/html\/electra\/conf\/trac.ini<\/em><\/strong><\/p>\n<p><strong><em>If you&#8217;d like to take this new project environment for a test drive,<br \/>\ntry running the Trac standalone web server `tracd`:<\/em><\/strong><\/p>\n<p><strong><em>tracd &#8211;port 8000 \/var\/www\/html\/electra<\/em><\/strong><\/p>\n<p><strong><em>Then point your browser to http:\/\/localhost:8000\/electra.<br \/>\nThere you can also browse the documentation for your installed<br \/>\nversion of Trac, including information on further setup (such as<br \/>\ndeploying Trac to a real web server).<\/em><\/strong><\/p>\n<p><strong><em>The latest documentation can also always be found on the project<br \/>\nwebsite:<\/em><\/strong><\/p>\n<p><strong><em><a href=\"http:\/\/trac.edgewall.org\/\">http:\/\/trac.edgewall.org\/<\/a><\/em><\/strong><\/p>\n<p><strong><em>Congratulations!<\/em><\/strong><\/p>\n<p><strong><em>Use default setting for svn and database name<\/em><\/strong><\/p><\/blockquote>\n<p>And add an admin user using this :<\/p>\n<blockquote><p><span style=\"font-size: small;\">trac-admin \/var\/www\/html\/mybiz3web permission add jfdesign TRAC_ADMIN<\/span><\/p><\/blockquote>\n<p><span style=\"font-size: small;\">Some extra setting you may configure like site logo, can be achieved by adding a corresponding png file on the root of the project web root and set the config of trac.ini under conf folder with this :<\/span><\/p>\n<blockquote><p>[changeset]<br \/>\nmax_diff_bytes = 10000000<br \/>\nmax_diff_files = 0<br \/>\nwiki_format_messages = true<\/p>\n<p>[header_logo]<br \/>\nalt = MyBiz3Web Project<br \/>\nheight = 75<br \/>\nlink = http:\/\/repo.kreators.com\/mybiz3web<br \/>\nsrc = http:\/\/10.10.13.7\/mybiz3web.png<br \/>\nwidth = 298<\/p>\n<p>[inherit]<br \/>\nplugins_dir =<br \/>\ntemplates_dir =<\/p><\/blockquote>\n<p><span style=\"font-size: small;\">Some precaution must be<br \/>\n<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is the trac config handler on mod_python.conf I use for trac mybiz3web development project : &lt;Location \/mybiz3web&gt; SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_frontend PythonOption TracEnv \/var\/www\/html\/mybiz3web PythonOption TracUriRoot \/mybiz3web &lt;\/Location&gt; Add them to \/etc\/httpd\/modules.d\/16_mod_python.conf as a handler to apache web server. And I use this config to authenticate user via htpasswd password file : [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,9],"tags":[116,242],"_links":{"self":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/735"}],"collection":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=735"}],"version-history":[{"count":0,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=\/wp\/v2\/posts\/735\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=735"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=735"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jfdesignnet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}