** This file contains an SQLite 2.1 database **(uãÚÌ+$ è€  "%ètableattachmentattachment12CREATE TABLE attachment ( type text, id text, filename text, size integer, time integer, description text, author text, ipnr text, UNIQUE (type,id,filename) )H5€ &255index(node_change autoindex 1)node_change21”9€ (699index(ticket_change autoindex 1)ticket_change29 ~€  #~tablecomponentcomponent38CREATE TABLE component ( name text PRIMARY KEY, owner text, description text )L@Ü,cdatabase_version€@Ô0€database_version16@Ð̨|canonymouscLOG_VIEW€c@canonymouscFILE_VIEW€@canonymouscWIKI_VIEW€@¨canonymouscWIKI_CREATE€XcanonymouscWIKI_MODIFY€tcanonymouscSEARCH_VIEW€PcanonymouscREPORT_VIEW€ øcanonymouscREPORT_SQL_VIEW€øcanonymouscTICKET_VIEW€  canonymouscTICKET_CREATE€ EWLcanonymouscTICKET_MODIFY€ W$canonymouscBROWSER_VIEW€ YW€canonymouscTIMELINE_VIEW€ W0canonymouscCHANGESET_VIEW€WÐcanonymouscROADMAP_VIEW€EW canonymouscMILESTONE_VIEW€XÀ0€ anonymousLOG_VIEW@X€ anonymousFILE_VIEW@€€ anonymousWIKI_VIEW@¬€ anonymousWIKI_CREATEâÿ¿Ø€ anonymousWIKI_MODIFYâÿ¿€ anonymousSEARCH_VIEWâÿ¿0€ anonymousREPORT_VIEWâÿ¿`€ anonymousREPORT_SQL_VIEW|@Œ€  anonymousTICKET_VIEWIEW¸€  anonymousTICKET_CREATEWä€  anonymousTICKET_MODIFYW€  anonymousBROWSER_VIEWW<€  anonymousTIMELINE_VIEWWh€ anonymousCHANGESET_VIEW”€ anonymousROADMAP_VIEWW€ anonymousMILESTONE_VIEW@øøøøøø€x^€ ^tablesystemsystem4CREATE TABLE system ( name text PRIMARY KEY, value text )M@´*€ !(**index(system autoindex 1)system3ÿ¿H€ "$tablepermissionpermission6CREATE TABLE permission ( username text, action text, UNIQUE (username,action) )_@Œ2€ %022index(permission autoindex 1)permission5@@¢€ $&¢tableauth_cookieauth_cookie8CREATE TABLE auth_cookie ( cookie text, name text, ipnr text, time integer, UNIQUE (cookie,ipnr,name) )@„4€ &244index(auth_cookie autoindex 1)auth_cookie7D°€ °tablesessionsession10CREATE TABLE session ( sid text, authenticated integer, var_name text, var_value text, UNIQUE (sid,authenticated,var_name) ),€ "*,,index(session autoindex 1)session9€èL3€  %033index(attachment autoindex 1)attachment11@4Ö€  Ötablewikiwiki16CREATE TABLE wiki ( name text, version integer, time integer, author text, ipnr text, text text, comment text, readonly integer, UNIQUE (name,version) )l'€  $''index(wiki autoindex 1)wiki15@ÈL€  "Lindexwiki_time_idxwiki17CREATE INDEX wiki_time_idx ON wiki (time)d‰€ !‰tablerevisionrevision19CREATE TABLE revision ( rev text PRIMARY KEY, time integer, author text, message text )‚@¤/€ #,//index(revision autoindex 1)revision18@\€ '*\indexrevision_time_idxrevision20CREATE INDEX revision_time_idx ON revision (time)Å€ $'Åtablenode_changenode_change22CREATE TABLE node_change ( rev text, path text, kind text, change text, base_path text, base_rev text, UNIQUE (rev,path,change) )c@,œcTracSearchb0G1X€acÔØ‹ó€ ).8óóóTracGuide11155902492trac127.0.0.1= The Trac User and Administration Guide = [[TracGuideToc]] The TracGuide is meant to serve as a starting point for all documentation regarding Trac usage and development. PŒ¨ €!#.3=¨ ¨ ¨ TracStandalone11155902492trac127.0.0.1= Tracd = Tracd is a lightweight standalone Trac web server. In most cases it's easier to setup and runs faster than the [wiki:TracCgi CGI script]. == Pros == * ¡À$¿b0G6X4vQmS€XÜ(c0€Ðc1€@˜c2€@`c3€@lc4€@€c5€@”c6€@¨c7€@¼c8€ @c9€ @äc10€ øc11€  c12€  c13€4c14€Hc15€\c16€pc17€„c18€0c19€¬c20€Àc21€Ôc22€èc23€üc24€c25€$c26€8c27€Lc28€Dc29€tc30€ˆc31€ œc32€!°c33€"Äc34€#Øc35€$ìc36€%c37€&c38€'Xc39€(ØðˆçH0€0131144333375mauser- comment on install è/€/281153658519mauser- multiple accounts @xauser- WARNING: broken version. Põ$ôb0G6X4G1vA€Üò¼ä0c16ctrunk/kabbit.pycE€0å\c23ctrunk/install.pycE€Dé!Œc3ctrunk/plugins/song.pycA€|@î!c4ctrunk/plugins/core.pycE€|@Dö@âL1€ /14trunk/install.pyFEtrunk/install.py3c@ãœ=€# "$;=9trunk/kabbit.conf.tmplFEtrunk/kabbit.conf.tmpl1û-æôG€2 %')DG16trunk/plugins/mensa_upb.pyFEtrunk/plugins/mensa_upb.py15êPK€A ')+HK22trunk/plugins/mail_notify.pyFEtrunk/plugins/mail_notify.py21¿í ?€O !#%` key; on a Mac, use the `` key instead. ''Note that when using Internet Explorer on Windows, you need to hit enter after having used the access key.'' == Global Access Keys == * `1` - WikiStart * `2` - [wiki:TracTimeline Timeline] * `3` - [wiki:TracRoadmap Roadmap] * `4` - [wiki:TracSearch Search] * `6` - [wiki:TracGuide Trac Guide / Documentation] * `7` - [wiki:TracTickets New Ticket] * `9` - [../about About Trac] * `0` - This page ---- See also: TracGuide: to better fit your needs. == Usage == You can get a comprehensive list of the available options, commands and sub-commands by invoking `trac-admin` with the `help` command: {{{ trac-admin help }}} Unless you're executing the `help`, `about` or `version` sub-commands, you'll need to specify the path to the TracEnvironment that you want to administer as the first argument, for example: {{{ trac-admin /path/to/projenv wiki list }}} == Interactive Mode == When passing the environment path as the only argument, `trac-admin` starts in interactive mode. Commands can then be executed on the selected environment using the prompt, which offers tab-completion (on non-Windows environments, and when the Python `readline` module is available) and automatic repetition of the last command issued. Once you're in interactive mode, you can also get help on specific commands or subsets of commands: For example, to get an explanation of the `resync` command, run: {{{ > help resync }}} To get help on a all the Wiki-related commands, run: {{{ > help wiki }}} ---- See also: TracGuide, TracBackup, TracPermissions, TracEnvironment, TracIni |€).8CamelCase11155902492trac127.0.0.1= !CamelCase = New words created by smashing together capitalized words. CamelCase is the original wiki convention for creating hyperlinks, with the additional requirement 7t]€ $)3]]]RecentChanges11155902492trac127.0.0.1= Recent Changes = [[RecentChanges]] DJ@”€ #-”””SandBox11155902492trac127.0.0.1= The Sandbox = This is just a page to practice and learn WikiFormatting. Go ahead, edit it freely.T€ !&0TTTTitleIndex11155902492trac127.0.0.1= Title Index = [[TitleIndex]] „ü€).8TracAdmin11155902492trac127.0.0.1= TracAdmin = [[TracGuideToc]] Trac is distributed with a powerful command-line configuration tool. This tool can be used to configure and customize your Trac-installation9C€*/9CCCTracBackup11155902492trac127.0.0.1= Trac Backup = [[TracGuideToc]] Since Trac uses a database backend, some extra care is required to safely create a backup of a [wiki:TracEnvironment project environment].=”€ +0:”””TracBrowser11155902492trac127.0.0.1= The Trac Browser = [[TracGuideToc]] The Trac browser can be used to browse directories, change logs and specific revisions of files stored in a subversion repository.?> Luckily, [wiki:TracAdmin trac-admin] has a command to make backups easier: `hotcopy`. ''Note: Trac uses the `hotcopy` nomenclature to match that of [http://subversion.tigris.org/ Subversion], to make it easier to remember when managing both Trac and Subversion servers.'' == Creating a Backup == To create a backup of a live TracEnvironment, simply run: {{{ $ trac-admin /path/to/projenv hotcopy /path/to/backupdir }}} [wiki:TracAdmin trac-admin] will lock the database while copying.'' The resulting backup directory is safe to handle using standard file-based backup tools like `tar` or `dump`/`restore`. === Restoring a Backup === Backups are simply a copied snapshot of the entire [wiki:TracEnvironment project environment] directory, including the SQLite database. To restore an environment from a backup, simply stop the process running Trac (i.e. the Web server or [wiki:TracStandalone tracd]), restore the directory structure from the backup and restart the service. ''Note: Automatic backup of environments that don't use SQLite as database backend is not supported at this time. As a workaround, we recommend that you stop the server, copy the environment directory, and make a backup of the database using whatever mechanism is provided by the database system.'' ---- See also: TracAdmin, TracEnvironment, TracGuide @ Directory entries are displayed in a list with sortable columns. The list entries can be sorted by ''name'', ''size'' or ''age'' by clicking on the column headers. The sort order can be reversed by clicking on a given column header again. The browser can be used to navigate through the directory structure by clicking on the directory names. Clicking on a file name will show the contents of the file. Clicking on the revision number of a file or directory will take you to the revision history for that file. It's also possible to browse directories or files as they were in history, at any given repository revision. The default behavior is to display the latest revision but another revision number can easily be selected using the ''View revision'' input field at the top of the page. == RSS Support == The browser module provided RSS feeds to monitor changes to a file or directory. To subscribe to an RSS feed for a file or directory, open its revision log in the browser and click the orange 'XML' icon at the bottom of the page. For more information on RSS support in Trac, see TracRss. ---- See also: TracGuide, TracChangeset, FineGrainedPermissions Bpache HTTPD], there are a couple ways to do that: 1. Use a `ScriptAlias` to map a URL to the `trac.cgi` script 2. Copy the `trac.cgi` file into the directory for CGI executables used by your web server (commonly named `cgi-bin`). You can also create a symbolic link, but in that case make sure that the `FollowSymLinks` option is enabled for the `cgi-bin` directory. The first option is recommended as it also allows you to map the CGI to a friendly URL. Now, edit the Apache configuration file and add this snippet, file names and locations changed to match your installation: {{{ ScriptAlias /trac /usr/share/trac/cgi-bin/trac.cgi # Trac needs to know where the database is located SetEnv TRAC_ENV "/path/to/projectenv" }}} This will make Trac available at `http://yourhost.example.org/trac`. ''Note: Make sure that the modules mod_alias and mod_env modules are available and enabled in your Apache configuration, otherwise Apache will complain about the abCove snippet.'' ''Note: If you are using the [http://httpd.apache.org/docs/suexec.html Apache suEXEC] feature see [http://projects.edgewall.com/trac/wiki/ApacheSuexec ApacheSuexec] (on the main Trac site).'' == Mapping Static Resources == Out of the box, Trac will serve static resources such as style sheets or images itself. For a CGI setup, though, this is highly undesirable, because it results in the CGI script being invoked for documents that could be more efficiently served by the web server. Web servers such as [http://httpd.apache.org/ Apache HTTPD] allow you to create “Aliases†to resources, thereby giving them a virtual URL that doesn't necessarily bear any resemblance to the layout of the servers file system. We already used this capability above when defining a `ScriptAlias` for the CGI script, and we'll use it now to map requests to the static resources to the directory on the file system that contains them, thereby bypassing the processing of such requests by the CGI script. D Edit the Apache configuration file again and add the following snippet '''before''' the `ScriptAlias` for the CGI script , file names and locations changed to match your installation: {{{ Alias /trac/chrome/common /usr/share/trac/htdocs Order allow,deny Allow from all }}} Note that whatever URL path you mapped the `trac.cgi` script to, the path `/chrome/common` is the path you have to append to that location to intercept requests to the static resources. For example, if Trac is mapped to `/cgi-bin/trac.cgi` on your server, the URL of the Alias should be `/cgi-bin/trac.cgi/chrome/common`. Alternatively, you can set the `htdocs_location` configuration option in [wiki:TracIni trac.ini]: {{{ [trac] htdocs_location = /trac-htdocs }}} Trac will then use this URL when embedding static resources into HTML pages. Of course, you still need to make the Trac `htdocs` directory available through the web server at the specified URL, for examEple by copying (or linking) the directory into the document root of the web server. == Adding Authentication == The simplest way to enable authentication with Apache is to create a password file. Use the `htpasswd` program to create the password file: {{{ $ htpasswd -c /somewhere/trac.htpasswd admin New password: Re-type new password: Adding password for user admin }}} After the first user, you dont need the "-c" option anymore: {{{ $ htpasswd /somewhere/trac.htpasswd john New password: Re-type new password: Adding password for user john }}} ''See the man page for `htpasswd` for full documentation.'' After you've created the users, you can set their permissions using TracPermissions. Now, you'll need to enable authentication against the password file in the Apache configuration: {{{ AuthType Basic AuthName "Trac" AuthUserFile /somewhere/trac.htpasswd Require valid-user }}} For better security, it is recommended that you either enable SSL or at least use the “Digest†authentication scheme instead of “Basicâ€. Please read the [http://httpd.apache.org/docs/2.0/ Apache HTTPD documentation] to find out more. ---- See also: TracGuide, TracInstall, TracFastCgi, TracModPythonG as when following a changeset [wiki:TracLinks link] or a changeset event in the [wiki:TracTimeline timeline], Trac will display the exact changes made by the check-in. The changeset view consists of two parts, the ''header'' and the ''diff views''. == Changeset Header == The header shows an overview of the whole changeset. Here you will find information such as: * Timestamp -- When the changeset was commited * Author -- Who commited the changeset * Message -- A brief description from the author (the commit log message) * Files -- A list of files affected by this changeset In front of each listed file, you'll find a colored rectangle. The color indicates how the file is affected by the changeset. * Green: Added * Red: Removed * Yellow: Modified * Blue: Copied * Gray: Moved The color legend is located below the header as a reminder. == Diff Views == Below the header is the main part of the changeset, the diff view. Each file is shown in a separate section,H each of which will contain only the regions of the file that are affected by the changeset. There are two different styles of displaying the diffs: ''inline'' or ''side-by-side'' (you can switch between those styles using the preferences form): * The ''inline'' style shows the changed regions of a file underneath each other. A region removed from the file will be colored red, an added region will be colored green. If a region was modified, the old version is displayed above the new version. Line numbers on the left side indicate the exact position of the change in both the old and the new version of the file. * The ''side-by-side'' style shows the old version on the left and the new version on the right (this will typically require more screen width than the inline style.) Added and removed regions will be colored in the same way as with the inline style (green and red, respectively), but modified regions will have a yellow background. In addition, various advanced options are available in the preferences form for adjusting the display of the diffs: * You can set how many lines are displayed before and after every change * You can toggle whether blank lines, case changes and white space changes are ignored, thereby letting you find the functional changes more quickly ---- See also: TracGuide, TracBrowser Jis created using [wiki:TracAdmin trac-admin]: {{{ $ trac-admin /path/to/projectenv initenv }}} [wiki:TracAdmin trac-admin] will ask you for the name of the project, the database connection string (explained below), and where your subversion repository is located. ''Note: The web server user will require file system write permission to the environment directory and all the files inside. Please remember to set the appropriate permissions. The same applies to the Subversion repository, although Trac will only require read access as long as you're not using the BDB file system.'' == Database Connection Strings == Since version 0.9, Trac supports both [http://sqlite.org/ SQLite] and [http://www.postgresql.org/ PostgreSQL] as database backends. The default is to use SQLite, which is probably sufficient for most projects. The database file is then stored in the environment directory, and can easily be [wiki:TracBackup backed up] together with the rest of the environment. The connecKtion string for an embedded SQLite database is: {{{ sqlite:db/trac.db }}} If you want to use PostgreSQL instead, you'll have to use a different connection string. For example, to connect to a database on the same machine called `trac`, that allows access to the user `johndoe` with the password `letmein`, use: {{{ postgres://johndoe:letmein@localhost/trac }}} If PostgreSQL is running on a non-standard port (for example 9342), use: {{{ postgres://johndoe:letmein@localhost:9342/trac }}} Note that with PostgreSQL you will have to create the database before running `trac-admin initenv`. == Directory Structure == An environment directory will usually consist of the following files and directories: * `README` - Brief description of the environment. * `VERSION` - Contains the environment version identifier. * `attachments` - Attachments to wiki pages and tickets are stored here. * `conf` * `trac.ini` - Main configuration file. See TracIni. * `db` * `trac.db` - The SQLite database (if you're using SQLite). * `plugins` - Environment-specific [wiki:TracPlugins plugins] (Python eggs) * `templates` - Custom environment-specific templates. * `site_css.cs` - Custom CSS rules. * `site_footer.cs` - Custom page footer. * `site_header.cs` - Custom page header. * `wiki-macros` - Environment-specific [wiki:WikiMacros Wiki macros]. ---- See also: TracAdmin, TracBackup, TracIni, TracGuide ü& €  "-2<& & & TracChangeset11155902492trac127.0.0.1= Trac Changeset Module = [[TracGuideToc]] Trac has a built-in functionality for visualizing “diffs†- changes to files. When viewing a repository check-in, suchF™ € "$/4>™ ™ ™ TracEnvironment11155902492trac127.0.0.1= Trac Storage - The Environment = Trac uses a directory structure and a database for storing project data. == Creating an Environment == A new Trac environment IÔ €  +0:Ô Ô Ô TracFastCgi11155902492trac127.0.0.1= Trac with FastCGI = Since version 0.9, Trac supports being run through the [http://www.fastcgi.com/ FastCGI] interface. Like [wiki:TracModPython mod_python], this allowsMN Trac to remain resident, and is faster than external CGI interfaces which must start a new process for each request. However, unlike mod_python, it is able to support [http://httpd.apache.org/docs/suexec.html SuEXEC]. Additionally, it is supported by much wider variety of web servers. == Simple Apache configuration == {{{ # Enable fastcgi for .fcgi files # (If you're using a distro package for mod_fcgi, something like # this is probably already present) AddHandler fastcgi-script .fcgi FastCgiIpcDir /var/lib/apache2/fastcgi LoadModule fastcgi_module /usr/lib/apache2/modules/mod_fastcgi.so }}} You can either setup the `TRAC_ENV` as an overall default: {{{ FastCgiConfig -initial-env TRAC_ENV=/path/to/env/trac }}} Or you can serve multiple Trac projects in a directory like: {{{ FastCgiConfig -initial-env TRAC_ENV_PARENT_DIR=/parent/dir/of/projects }}} Configure `ScriptAlias` or similar options as described in TracCgi, but calling `trac.fOcgi` instead of `trac.cgi`. == Simple Lighttpd Configuration == The FastCGI front-end was developed primarily for use with alternative webservers, such as [http://www.lighttpd.net/ lighttpd]. lighttpd is a secure, fast, compliant and very flexible web-server that has been optimized for high-performance environments. It has a very low memory footprint compared to other web servers and takes care of CPU load. For using `trac.fcgi` with lighttpd add the following to your lighttpd.conf: {{{ fastcgi.server = ("/trac" => ("trac" => ("socket" => "/tmp/trac-fastcgi.sock", "bin-path" => "/path/to/cgi-bin/trac.fcgi", "check-local" => "disable", "bin-environment" => ("TRAC_ENV" => "/path/to/projenv") ) ) ) }}} Note that you will need to add a new entry to `fastcgi.server` for each separate Trac instance that you wish to run. Alternatively, you may use the `TRAC_ENV_PARENT_DIR` variable instead of `TRAC_ENV` as described above. Other important information like [http://trac.lighttpd.net/trac/wiki/TracInstall this updated TracInstall page], [wiki:TracCgi#MappingStaticResources and this] are useful for non-fastcgi specific installation aspects. Relaunch lighttpd, and browse to `http://yourhost.example.org/trac` to access Trac. ---- See also TracCgi, TracModPython, TracInstall, TracGuideQThe guide is a free document, a collaborative effort, and a part of the [http://projects.edgewall.com/trac/ Trac Project] itself. == Table of Contents == Currently available documentation: * TracGuide (This page) -- Documentation starting point. * TracInstall -- How to install and run Trac. * TracUpgrade -- How to upgrade existing installations. * TracAdmin -- Administrating a Trac project. * TracImport -- Importing tickets from other bug databases. * TracIni -- Trac configuration file reference. * TracPermissions -- Access control and permissions. * TracInterfaceCustomization -- Customizing the Trac interface. * TracPlugins -- Installing and managing Trac extensions. * TracWiki -- How to use the built-in Wiki. * TracBrowser -- Browsing source code with Trac. * TracChangeset -- Viewing changes to source code. * TracTickets -- Using the issue tracker. * TracReports -- Writing and using reports. * TracQuery -- Executing custom ticket queries. * TracRoadmap -- The roadmap helps tracking project progress. * TracTimeline -- The timeline provides a historic perspective on a project. * TracLogging -- The Trac logging facility. * TracRss -- RSS content syndication in Trac. * TracNotification -- Email notification. * [http://projects.edgewall.com/trac/wiki/TracFaq Trac FAQ] - A collection of Frequently Asked Questions (on the project website) == Support and Other Sources of Information == If you are looking for a good place to ask a question about Trac, look no further than the [http://projects.edgewall.com/trac/wiki/MailingList MailingList]. It provides a friendly environment to discuss openly among Trac users and developers. See also the TracSupport page for more information resources.Sgzilla2trac.py] script, available in the contrib/ directory of the Trac distribution. {{{ $ bugzilla2trac.py bugzilla2trac - Imports a bug database from Bugzilla into Trac. Usage: bugzilla2trac.py [options] Available Options: --db - Bugzilla's database --tracenv /path/to/trac/env - full path to Trac db environment -h | --host - Bugzilla's DNS host name -u | --user - effective Bugzilla's database user -p | --passwd - Bugzilla's user password -c | --clean - remove current Trac tickets before importing --help | help - this help info Additional configuration options can be defined directly in the script. }}} Currently, the following data is imported from Bugzilla: * bugs * bug activity (field changes) * bug attachments * user names and passwords (put into a htpasswd file) The script provides a number of features to ease theT conversion, such as: * PRODUCT_KEYWORDS: Trac doesn't have the concept of products, so the script provides the ability to attach a ticket keyword instead. * IGNORE_COMMENTS: Don't import Bugzilla comments that match a certain regexp. * STATUS_KEYWORDS: Attach ticket keywords for the Bugzilla statuses not available in Trac. By default, the 'VERIFIED' and 'RELEASED' Bugzilla statuses are translated into Trac keywords. For more details on the available options, see the configuration section at the top of the script. == Sourceforge == Ticket data can be imported from Sourceforge using the [http://projects.edgewall.com/trac/browser/trunk/contrib/sourceforge2trac.py sourceforge2trac.py] script, available in the contrib/ directory of the Trac distribution. == Mantis == Mantis bugs can be imported using the attached script. Currently, the following data is imported from Mantis: * bugs * bug comments * bug activity (field changes) Attachments are NOT imported. If Uyou use the script, please read the NOTES section (at the top of the file) and make sure you adjust the config parameters for your environment. mantis2trac.py has the same parameters as the bugzilla2trac.py script: {{{ mantis2trac - Imports a bug database from Mantis into Trac. Usage: mantis2trac.py [options] Available Options: --db - Mantis database --tracenv /path/to/trac/env - Full path to Trac db environment -h | --host - Mantis DNS host name -u | --user - Effective Mantis database user -p | --passwd - Mantis database user password -c | --clean - Remove current Trac tickets before importing --help | help - This help info Additional configuration options can be defined directly in the script. }}} == Other == Since trac uses a SQL database to store the data, you can import from other systems by examining the database tables. Just go into [http://www.sqlite.org/sqlite.html sqlite] command line to look at the tables and import into them from your application. W Configuration == Since version 0.9, Trac can also read the configuration from a global `trac.ini` file. These global options will then be merged with the environment-specific options, where local options override global options. The global configuration is by default localted in `$prefix/share/trac/conf/trac.ini`. It can be moved to a different location (for example, `/etc/trac.ini`), but that requires changing the file `trac/siteconfig.py` which gets created when Trac is installed. == Reference == This is a brief reference of available configuration options. == [trac] == || `database` || [wiki:TracEnvironment#DatabaseConnectionStrings Database connection string] for this project || || `default_charset` || Charset used in text files in the subversion repository (default is `iso-8859-15`) || || `default_handler` || Name of the component that handles requests to the base URL (default is `WikiHandler`) (''since 0.9'') || || `repository_dir` || Path to local Subversion repository X|| || `authz_file` || Path to Subversion [http://svnbook.red-bean.com/en/1.1/ch06s04.html#svn-ch-6-sect-4.4.2 authorization (authz) file]. || || `authz_module_name` || The module prefix used in the `authz_file` (See FineGrainedPermissions)|| || `check_auth_ip` || Whether the IP address of the user should be checked for authentication (true, false) (''since 0.9'') || || `ignore_auth_case` || Whether case should be ignored for login names (true, false) (''since 0.9'') || || `templates_dir` || Path to the !ClearSilver templates || == [project] == || `name` || Project name || || `descr` || Short project description || || `url` || URL to the main project website || || `icon` || URL to icon file to use as shortcut icon (favicon) || || `footer` || Page footer text (right-aligned) || == [header_logo] == || `src` || URL to image to use as header logo || || `link` || Destination URL to link to from header logo || || `alt` || ''alt'' text for header logo || || `width` || HYeader logo width in pixels || || `height` || Header logo height in pixels || See also: TracInterfaceCustomization. == [logging] == || `log_type` || Logging facility to use. (none, file, stderr, syslog, winlog) || || `log_file` || If ''log_type'' is ''file'', this should be a path to the log-file || || `log_level` || Level of verbosity in log (CRITICAL, ERROR, WARN, INFO, DEBUG) || See also: TracLogging == [attachment] == || `max_size` || Maximum allowed file size for ticket and wiki attachments || == [notification] == || `smtp_enabled` || Enable SMTP (email) notification (true, false) || || `smtp_server` || SMTP server to use for email notifications || || `smtp_user` || Username for SMTP server (''since 0.9'') || || `smtp_password` || Password for SMTP server (''since 0.9'') || || `smtp_from` || Sender address to use in notification emails || || `smtp_replyto` || Reply-To address to use in notification emails || || `smtp_always_cc` || Email address(es) to always Zsend notifications to || || `always_notify_reporter` || Always send notifications to any address in the ''reporter'' field || || `always_notify_owner` || Always send notifications to the ticket owner (''since 0.9'') || See also: TracNotification == [mimeviewer] == || `enscript_path` || Path to the Enscript program || || `php_path` || Path to the PHP program || || `max_preview_size` || Maximum file size for HTML preview (''since 0.9'') || || `tab_width` || Displayed tab width in file preview (''since 0.9'') || == [ticket] == || `default_version` || Default version for newly created tickets || || `default_severity` || Default severity for newly created tickets || || `default_priority` || Default priority for newly created tickets || || `default_milestone` || Default milestone for newly created tickets || || `default_component` || Default component for newly created tickets || || `restrict_owner` || Make the owner field of tickets use a drop-down menu (''since 0.9'') || == [ticke[t-custom] == Creates [wiki:TracTicketsCustomFields user-defined ticket fields]. == [timeline] == || `default_daysback` || Default "depth" of the Timeline, in days (''since 0.9'') || || `changeset_show_files` || Number of files to show (-1 for unlimited, 0 to disable) || || `ticket_show_details` || Enable the display of all ticket changes in the timeline || == [browser] == || `hide_properties` || List of subversion properties to hide from the repository browser (''since 0.9'') || == [wiki] == || `ignore_missing_pages` || enable/disable highlighting CamelCase links to missing pages (''since 0.9'') || == [components] == (''since 0.9'') 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 `enabled` or `on` will enable the component, any other value (typically `disabled` or `off`) will disable \the component. 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. Consider the following configuration snippet: {{{ [components] trac.ticket.report.ReportModule = disabled webadmin.* = enabled }}} The first option tells Trac to disable the [wiki:TracReports report module]. The second option instructs Trac to enable all components in the `webadmin` package. Note that the trailing wildcard is required for module/package matching. See the ''Plugins'' page on ''About Trac'' to get the list of active components (requires `CONFIG_VIEW` [wiki:TracPermissions permissions].) See also: TracPlugins ''Note that prior to Trac r2335 (that applies to 0.9b1 and 0.9b2), you would use a `[disabled_components]` section instead. See a [http://projects.edgewall.com/trac/wiki/TracIni?version=42 previous version] of this page for the details.'' ---- See also: TracGuide, TracAdmin, TracEnvironment ^programming language and can use [http://sqlite.org/ SQLite] or [http://www.postgresql.org/ PostgreSQL] as database. For HTML rendering, Trac uses the [http://www.clearsilver.net/ Clearsilver] templating system. What follows are generic instructions for installing and setting up Trac and its requirements. While you can find instructions for installing Trac on specific systems at [http://projects.edgewall.com/trac/wiki/TracInstallPlatforms TracInstallPlatforms] on the main Trac site, please be sure to first read through these general instructions to get a good understanding of the tasks involved. == Requirements == To install Trac, the following software packages must be installed: * [http://www.python.org/ Python], version >= 2.3. * Python 2.4 is not supported on Windows since there are no Subversion bindings available for it. * For RPM-based systems you might also need the `python-devel` and `python-xml` packages. * [http://subversion.tigris.org/ Subversion], version >= 1.0. (>= 1_.1 recommended) and corresponding [http://svnbook.red-bean.com/svnbook-1.1/ch08s02.html#svn-ch-8-sect-2.3 Python bindings] * Trac uses the [http://www.swig.org/ SWIG] bindings included in the Subversion distribution, '''not''' [http://pysvn.tigris.org/ PySVN] (which is sometimes confused with the standard SWIG bindings). * If Subversion was already installed without the SWIG bindings, you'll need to re-`configure` Subversion and `make swig-py`, `make install-swig-py`. * [http://www.clearsilver.net/ ClearSilver], version >= 0.9.3 * With python-bindings (`./configure --with-python=/usr/bin/python`) === For SQLite === * [http://www.sqlite.org/ SQLite], version 2.8.x or 3.x * [http://pysqlite.org/ PySQLite] * version 1.0.x (for SQLite 2.8.x) * version 1.1.x or 2.x (for SQLite 3.x) === For PostgreSQL === * [http://www.postgresql.org/ PostgreSQL] * [http://initd.org/projects/psycopg1 psycopg1], [http://initd.org/projects/psycopg2 psycopg2], or [http://pypgsql.sourceforge.`net/ pyPgSQL] === Optional Requirements === * A CGI-capable web server (see TracCgi), or * a [http://www.fastcgi.com/ FastCGI]-capable web server (see TracFastCgi), or * [http://httpd.apache.org/ Apache] with [http://www.modpython.org/ mod_python 3.1.3+] (see TracModPython) * [http://peak.telecommunity.com/DevCenter/setuptools setuptools], version >= 0.5a13 for using plugins (see TracPlugins) * [http://docutils.sourceforge.net/ docutils], version >= 0.3.3 for WikiRestructuredText. * [http://silvercity.sourceforge.net/ SilverCity] and/or [http://www.gnu.org/software/enscript/enscript.html Enscript] for [wiki:TracSyntaxColoring syntax highlighting]. '''Attention''': The various available versions of these dependencies are not necessarily interchangable, so please pay attention to the version numbers above. If you are having trouble getting Trac to work please double-check all the dependencies before asking for help on the [http://projects.edgewall.com/trac/wiki/MailingList MailingList] oar [http://projects.edgewall.com/trac/wiki/IrcChannel IrcChannel]. Please refer to the documentation of these packages to find out how they are best installed. In addition, most of the [http://projects.edgewall.com/trac/wiki/TracInstallPlatforms platform-specific instructions] also describe the installation of the dependencies. == Installing Trac == Like most Python programs, the Trac Python package is installed by running the following command at the top of the source directory: {{{ $ python ./setup.py install }}} ''Note: you'll need root permissions or equivalent for this step.'' This will byte-compile the python source code and install it in the `site-packages` directory of your Python installation. The directories `cgi-bin`, `templates`, `htdocs`, `wiki-default` and `wiki-macros` are all copied to `$prefix/share/trac/.` The script will also install the [wiki:TracAdmin trac-admin] command-line tool, used to create and maintain [wiki:TracEnvironment project environments], as well asb the [wiki:TracStandalone tracd] standalone server. === Advanced Users === To install Trac to a custom location, or find out about other advanced installation options, run: {{{ $ python ./setup.py --help }}} Specifically, you might be interested in: {{{ $ python ./setup.py install --prefix=/path/you/want }}} == Creating a Project Environment == A [wiki:TracEnvironment Trac environment] is the backend storage where Trac stores information like wiki pages, tickets, reports, settings, etc. An environment is basically a directory that contains a human-readable configuration file and various other files and directories. A new environment is created using [wiki:TracAdmin trac-admin]: {{{ $ trac-admin /path/to/trac_project_env initenv }}} [wiki:TracAdmin trac-admin] will prompt you for the information it needs to create the environment, such as the name of the project, the path to an existing subversion repository, the [wiki:TracEnvironment#DatabaseConnectionStrings database connecction string], and so on. If you're not sure what to specify for one of these options, just leave it blank to use the default value. The database connection string in particular will always work as long as you have SQLite installed. The only option where the default value is likely to not work is the path to the Subversion repository, so make sure that one's correct. Also note that the values you specify here can be changed later by directly editing the [wiki:TracIni] configuration file. ''Note: The user account under which the web server runs will require write permissions to the environment directory and all the files inside.'' == Running the Standalone Server == After having created a Trac environment, you can easily try the web interface by running the standalone server [wiki:TracStandalone tracd]: {{{ $ tracd --port 8000 /path/to/projectenv }}} Then, fire up a browser and visit `http://localhost:8000/`. You should get a simple listing of all environments that tracd knows about. Fdollow the link to the environment you just created, and you should see Trac in action. == Running Trac on a Web Server == Trac provides three options for connecting to a “real†web server: [wiki:TracCgi CGI], [wiki:TracFastCgi FastCGI] and [wiki:TracModPython mod_python]. For decent performance, it is recommended that you use either FastCGI or mod_python. == Configuring Authentication == The process of adding, removing, and configuring user accounts for authentication depends on the specific way you run Trac. To learn about how to accomplish these tasks, please visit one of the following pages: * TracStandalone if you use the standalone server, `tracd`. * TracCgi if you use the CGI or FastCGI methods. * TracModPython if you use the mod_python method. == Using Trac == Once you have your Trac site up and running, you should be able to browse your subversion repository, create tickets, view the timeline, etc. Keep in mind that anonymous (not logged in) users can by default access most but not all of the features. You will need to configure authentication and grant additional [wiki:TracPermissions permissions] to authenticated users to see the full set of features. ''Enjoy!'' [http://projects.edgewall.com/trac/wiki/TracTeam The Trac Team] ---- See also: TracGuide, TracCgi, TracFastCgi, TracModPython, TracUpgrade, TracPermissionsüa €*/9a a a TracImport11155902492trac127.0.0.1= Importing ticket data = == Bugzilla == Ticket data can be imported from Bugzilla using the [http://projects.edgewall.com/trac/browser/trunk/contrib/bugzilla2trac.py buR.€',6...TracIni11155902492trac127.0.0.1= The Trac Configuration File = [[TracGuideToc]] Trac configuration is done by editing the '''`trac.ini`''' config file, located in `/conf/trac.ini`. == GlobalVB€ +0:BBBTracInstall11155902492trac127.0.0.1= Trac Installation Guide = [[TracGuideToc]] Trac is a lightweight project management tool that is implemented as a web-based application. Trac is written in the Python ]gTrac. Topics on this page cover editing the HTML templates and CSS files, but not the program code itself. The topics are intended to show users how they can modify the look of Trac to meet their specific needs. Suggestions for changes to Trac's interface applicable to all users should be filed as tickets, not listed on this page. == Project Logo and Icon == The easiest parts of the Trac interface to customize are the logo and the site icon. Both of these can be configured with settings in [wiki:TracIni trac.ini]. The logo or icon image should be put in a folder named "htdocs" in your project's environment folder. (''Note: in projects created with a Trac version prior to 0.9 you will need to create this folder'') Now configure the appropriate section of your [wiki:TracIni trac.ini]: === Logo === Change the `src` setting to `site/` followed by the name of your image file. The `width` and `height` settings should be modified to match your image's dimensions. {{{ [header_logo] src = hsite/my_logo.gif alt = My Project width = 300 height = 100 }}} === Icon === Icons should be a 16x16 image in `.gif` or `.ico` format. Change the `icon` setting to `site/` followed by the name of your icon file. Icons will typically be displayed by your web browser next to the site's URL and in the `Bookmarks` menu. {{{ [project] icon = site/my_icon.ico }}} Note though that this icon is ignored by Internet Explorer, which only accepts a file named ``favicon.ico`` at the root of the host. To make the project icon work in both IE and other browsers, you can store the icon in the document root of the host, and reference it from ``trac.ini`` as follows: {{{ [project] icon = /favicon.ico }}} == Site Header & Footer == In the environment folder for each Trac project there should be a directory called {{{templates}}}. This folder contains files {{{site_header.cs}}} and {{{site_footer.cs}}}. Users can customize their Trac site by adding the required HTML markup to these files. The ciontent of these two files will be placed immediately following the opening {{{}}} tag and immediately preceding the closing {{{}}} tag of each page in the site, respectively. These files may contain static HTML, though if users desire to have dynamically generated content they can make use of the [http://www.clearsilver.net/ ClearSilver] templating language from within the pages as well. When you need to see what variables are available to the template, append the query string `?hdfdump=1` to the URL of your Trac site. This will display a structured view of the template data. == Site CSS == The primary means to adjust the layout of a Trac site is by add [http://www.w3.org/TR/REC-CSS2/ CSS] style rules that overlay the default rules. This is best done by editing the `site_css.cs` file in the enviroment's `templates` directory. The content of that template gets inserted into a `