<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=TracIni</id>
	<title>TracIni - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://t2bwiki.iihe.ac.be/index.php?action=history&amp;feed=atom&amp;title=TracIni"/>
	<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=TracIni&amp;action=history"/>
	<updated>2026-04-20T23:48:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://t2bwiki.iihe.ac.be/index.php?title=TracIni&amp;diff=305&amp;oldid=prev</id>
		<title>Maintenance script: Created page with &quot; == The Trac Configuration File == TracGuideToc  Trac configuration is done by editing the &#039;&#039;&#039;&lt;tt&gt;trac.ini&lt;/tt&gt;&#039;&#039;&#039; config file, located in &lt;tt&gt;&lt;projectenv&gt;/conf/trac.ini&lt;/...&quot;</title>
		<link rel="alternate" type="text/html" href="https://t2bwiki.iihe.ac.be/index.php?title=TracIni&amp;diff=305&amp;oldid=prev"/>
		<updated>2015-08-26T12:29:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; == The Trac Configuration File == &lt;a href=&quot;/index.php?title=TracGuideToc&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;TracGuideToc (page does not exist)&quot;&gt;TracGuideToc&lt;/a&gt;  Trac configuration is done by editing the &amp;#039;&amp;#039;&amp;#039;&amp;lt;tt&amp;gt;trac.ini&amp;lt;/tt&amp;gt;&amp;#039;&amp;#039;&amp;#039; config file, located in &amp;lt;tt&amp;gt;&amp;lt;projectenv&amp;gt;/conf/trac.ini&amp;lt;/...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
== The Trac Configuration File ==&lt;br /&gt;
[[TracGuideToc]]&lt;br /&gt;
&lt;br /&gt;
Trac configuration is done by editing the &amp;#039;&amp;#039;&amp;#039;&amp;lt;tt&amp;gt;trac.ini&amp;lt;/tt&amp;gt;&amp;#039;&amp;#039;&amp;#039; config file, located in &amp;lt;tt&amp;gt;&amp;lt;projectenv&amp;gt;/conf/trac.ini&amp;lt;/tt&amp;gt;.  Changes to the configuration are usually reflected immediately, though changes to the &amp;lt;tt&amp;gt;[components]&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;[logging]&amp;lt;/tt&amp;gt; sections will require restarting the web server. You may also need to restart the web server after creating a global configuration file when none was previously present.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;trac.ini&amp;lt;/tt&amp;gt; configuration file should be writable by the web server, as Trac currently relies on the possibility to trigger a complete environment reload to flush its caches.&lt;br /&gt;
&lt;br /&gt;
=== Global Configuration ===&lt;br /&gt;
&lt;br /&gt;
In versions prior to 0.11, the global configuration was by default located in &amp;lt;tt&amp;gt;$prefix/share/trac/conf/trac.ini&amp;lt;/tt&amp;gt; or /etc/trac/trac.ini, depending on the distribution. If you&amp;#039;re upgrading, you may want to specify that file to inherit from.  Literally, when you&amp;#039;re upgrading to 0.11, you have to add an &amp;lt;tt&amp;gt;[inherit]&amp;lt;/tt&amp;gt; section to your project&amp;#039;s &amp;lt;tt&amp;gt;trac.ini&amp;lt;/tt&amp;gt; file. Additionally, you have to move your customized templates and common images from &amp;lt;tt&amp;gt;$prefix/share/trac/...&amp;lt;/tt&amp;gt; to the new location.&lt;br /&gt;
&lt;br /&gt;
Global options will be merged with the environment-specific options, where local options override global options. The options file is specified as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[inherit]&lt;br /&gt;
file = /path/to/global/trac.ini&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Multiple files can be specified using a comma-separated list.&lt;br /&gt;
&lt;br /&gt;
Note that you can also specify a global option file when creating a new project,  by adding the option &amp;lt;tt&amp;gt;--inherit=/path/to/global/trac.ini&amp;lt;/tt&amp;gt; to [TracAdmin#initenv trac-admin]&amp;#039;s &amp;lt;tt&amp;gt;initenv&amp;lt;/tt&amp;gt; command.  If you do not do this but nevertheless intend to use a global option file with your new environment, you will have to go through the newly generated &amp;lt;tt&amp;gt;conf/trac.ini&amp;lt;/tt&amp;gt; file and delete the entries that will otherwise override those set in the global file.&lt;br /&gt;
&lt;br /&gt;
There are two more entries in the [[#inherit-section| [inherit] ]] section, &amp;lt;tt&amp;gt;templates_dir&amp;lt;/tt&amp;gt; for sharing global templates and &amp;lt;tt&amp;gt;plugins_dir&amp;lt;/tt&amp;gt;, for sharing plugins. Those entries can themselves be specified in the shared configuration file, and in fact, configuration files can even be chained if you specify another &amp;lt;tt&amp;gt;[inherit] file&amp;lt;/tt&amp;gt; there.&lt;br /&gt;
&lt;br /&gt;
== Reference for settings&lt;br /&gt;
&lt;br /&gt;
This is a brief reference of available configuration options.&lt;br /&gt;
&lt;br /&gt;
[[TracIni]]&lt;br /&gt;
&lt;br /&gt;
== Reference for special sections&lt;br /&gt;
[[PageOutline(3,,inline)]]&lt;br /&gt;
&lt;br /&gt;
==== [components] ==== #components-section&lt;br /&gt;
This section is used to enable or disable components provided by plugins, as well as by Trac itself. The component to enable/disable is specified via the name of the option. Whether its enabled is determined by the option value; setting the value to &amp;lt;tt&amp;gt;enabled&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;on&amp;lt;/tt&amp;gt; will enable the component, any other value (typically &amp;lt;tt&amp;gt;disabled&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;off&amp;lt;/tt&amp;gt;) will disable the component.&lt;br /&gt;
&lt;br /&gt;
The option name is either the fully qualified name of the components or the module/package prefix of the component. The former enables/disables a specific component, while the latter enables/disables any component in the specified package/module.&lt;br /&gt;
&lt;br /&gt;
Consider the following configuration snippet:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[components]&lt;br /&gt;
trac.ticket.report.ReportModule = disabled&lt;br /&gt;
webadmin.* = enabled&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first option tells Trac to disable the [[TracReports| report module]]. The second option instructs Trac to enable all components in the &amp;lt;tt&amp;gt;webadmin&amp;lt;/tt&amp;gt; package. Note that the trailing wildcard is required for module/package matching.&lt;br /&gt;
&lt;br /&gt;
See the &amp;#039;&amp;#039;Plugins&amp;#039;&amp;#039; page on &amp;#039;&amp;#039;About Trac&amp;#039;&amp;#039; to get the list of active components (requires &amp;lt;tt&amp;gt;CONFIG_VIEW&amp;lt;/tt&amp;gt; [[TracPermissions| permissions]].)&lt;br /&gt;
&lt;br /&gt;
See also: TracPlugins&lt;br /&gt;
&lt;br /&gt;
==== [milestone-groups] ==== #milestone-groups-section&lt;br /&gt;
&amp;#039;&amp;#039;(since 0.11)&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
As the workflow for tickets is now configurable, there can be many ticket states,&lt;br /&gt;
and simply displaying closed tickets vs. all the others is maybe not appropriate &lt;br /&gt;
in all cases. This section enables one to easily create &amp;#039;&amp;#039;groups&amp;#039;&amp;#039; of states &lt;br /&gt;
that will be shown in different colors in the milestone progress bar.&lt;br /&gt;
&lt;br /&gt;
Example configuration (the default only has closed and active):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
closed = closed&lt;br /&gt;
# sequence number in the progress bar&lt;br /&gt;
closed.order = 0&lt;br /&gt;
# optional extra param for the query (two additional columns: created and modified and sort on created)&lt;br /&gt;
closed.query_args = group=resolution,order=time,col=id,col=summary,col=owner,col=type,col=priority,col=component,col=severity,col=time,col=changetime&lt;br /&gt;
# indicates groups that count for overall completion &lt;br /&gt;
closed.overall_completion = truepercentage&lt;br /&gt;
&lt;br /&gt;
new = new&lt;br /&gt;
new.order = 1&lt;br /&gt;
new.css_class = new&lt;br /&gt;
new.label = new&lt;br /&gt;
&lt;br /&gt;
# one catch-all group is allowed&lt;br /&gt;
active = *&lt;br /&gt;
active.order = 2&lt;br /&gt;
# CSS class for this interval&lt;br /&gt;
active.css_class = open&lt;br /&gt;
# Displayed label for this group&lt;br /&gt;
active.label = in progress&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The definition consists in a comma-separated list of accepted status.&lt;br /&gt;
Also, &amp;#039;*&amp;#039; means any status and could be used to associate all remaining&lt;br /&gt;
states to one catch-all group.&lt;br /&gt;
&lt;br /&gt;
The CSS class can be one of: new (yellow), open (no color) or&lt;br /&gt;
closed (green). New styles can easily be added using the following&lt;br /&gt;
selector:  &amp;lt;tt&amp;gt;table.progress td.&amp;lt;class&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== [repositories] ==== #repositories-section&lt;br /&gt;
&lt;br /&gt;
(&amp;#039;&amp;#039;since 0.12&amp;#039;&amp;#039; multirepos)&lt;br /&gt;
&lt;br /&gt;
One of the alternatives for registering new repositories is to populate the &amp;lt;tt&amp;gt;[repositories]&amp;lt;/tt&amp;gt; section of the trac.ini.&lt;br /&gt;
&lt;br /&gt;
This is especially suited for setting up convenience aliases, short-lived repositories, or during the initial phases of an installation.&lt;br /&gt;
&lt;br /&gt;
See [TracRepositoryAdmin#Intrac.ini TracRepositoryAdmin] for details about the format adopted for this section and the rest of that page for the other alternatives.&lt;br /&gt;
&lt;br /&gt;
==== [svn:externals] ==== #svn:externals-section&lt;br /&gt;
&amp;#039;&amp;#039;(since 0.11)&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The TracBrowser for Subversion can interpret the &amp;lt;tt&amp;gt;svn:externals&amp;lt;/tt&amp;gt; property of folders.&lt;br /&gt;
By default, it only turns the URLs into links as Trac can&amp;#039;t browse remote repositories.&lt;br /&gt;
&lt;br /&gt;
However, if you have another Trac instance (or an other repository browser like [http://www.viewvc.org/ ViewVC]) configured to browse the target repository, then you can instruct Trac which other repository browser to use for which external URL.&lt;br /&gt;
&lt;br /&gt;
This mapping is done in the &amp;lt;tt&amp;gt;[svn:externals]&amp;lt;/tt&amp;gt; section of the TracIni&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[svn:externals]&lt;br /&gt;
1 = svn://server/repos1                       http://trac/proj1/browser/$path?rev=$rev&lt;br /&gt;
2 = svn://server/repos2                       http://trac/proj2/browser/$path?rev=$rev&lt;br /&gt;
3 = http://theirserver.org/svn/eng-soft       http://ourserver/viewvc/svn/$path/?pathrev=25914&lt;br /&gt;
4 = svn://anotherserver.com/tools_repository  http://ourserver/tracs/tools/browser/$path?rev=$rev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
With the above, the &amp;lt;tt&amp;gt;svn://anotherserver.com/tools_repository/tags/1.1/tools&amp;lt;/tt&amp;gt; external will be mapped to &amp;lt;tt&amp;gt;http://ourserver/tracs/tools/browser/tags/1.1/tools?rev=&amp;lt;/tt&amp;gt; (and &amp;lt;tt&amp;gt;rev&amp;lt;/tt&amp;gt; will be set to the appropriate revision number if the external additionally specifies a revision, see the [http://svnbook.red-bean.com/en/1.4/svn.advanced.externals.html SVN Book on externals] for more details).&lt;br /&gt;
&lt;br /&gt;
Note that the number used as a key in the above section is purely used as a place holder, as the URLs themselves can&amp;#039;t be used as a key due to various limitations in the configuration file parser.&lt;br /&gt;
&lt;br /&gt;
Finally, the relative URLs introduced in [http://subversion.tigris.org/svn_1.5_releasenotes.html#externals Subversion 1.5] are not yet supported.&lt;br /&gt;
&lt;br /&gt;
==== [ticket-custom] ==== #ticket-custom-section&lt;br /&gt;
&lt;br /&gt;
In this section, you can define additional fields for tickets. See TracTicketsCustomFields for more details.&lt;br /&gt;
&lt;br /&gt;
==== [ticket-workflow] ==== #ticket-workflow-section&lt;br /&gt;
&amp;#039;&amp;#039;(since 0.11)&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The workflow for tickets is controlled by plugins. &lt;br /&gt;
By default, there&amp;#039;s only a &amp;lt;tt&amp;gt;ConfigurableTicketWorkflow&amp;lt;/tt&amp;gt; component in charge. &lt;br /&gt;
That component allows the workflow to be configured via this section in the trac.ini file.&lt;br /&gt;
See TracWorkflow for more details.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
See also: TracGuide, TracAdmin, TracEnvironment&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{TracNotice|{{PAGENAME}}}}&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>