Interface customization

Adjust the look and feel of the Trac interface.

Official Trac Wiki Page

Project logo
Save the logo graphic in /var/trac/projectname/htdocs/my_logo.gif. 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 (the Trac chrome handler uses "site/" for files within the project directory htdocs and "common/" for the common ones). Edit /var/trac/projectname/conf/trac.ini:



Trac Customization

Various ways to customize your Trac server

Some of these are no longer necessary with version 0.11.5, such as adding "components" to the ticket system as the WebAdmin plugin is now included.

Wiki page for trac.ini


Disable Subversion Component

Use Trac as just an issue-track and Wiki by disabling the SVN component.

If you just want to use Trac as a Wiki and issue tracker, without any version control subsystem, you can disable it that part.

  1. When initializing a project's environment with trac-admin, don't enter anything for the repository directory (i.e. keep the default).
  2. Add the following to project/conf/trac.ini:
    trac.versioncontrol.* = disabled


Apache config

Configuration instructions for serving Trac with Apache.

TracModMython wiki page with detailed Apache instructions.

Apache requires mod_python to be installed in order to run Trac.

Simple Configuration
Edit /usr/local/apache2/conf/httpd.conf and add the following to instruct Apache to redirect any URLs starting with "/trac/" to Trac:

SetHandler mod_python
PythonInterpreter main_interpreter


Syntax Colouring

Trac supports language-specific syntax highlighting of source code in wiki formatted text and the repository browser.

Trac supports a number of external libraries for syntax highlighting.
SilverCity is a lexing package, based on Scintilla, that can provide lexical analysis for over 20 programming and markup langauges.
Download the latest version (0.9.7)

cd /extra/src
tar zxvf SilverCity-0.9.7.tar.gz
cd SilverCity-0.9.7

Build and install it:



Instruction for installing Trac using MySQL instead of SQLite

Install MySQL per the instructions here.However, add --enable-thread-safe-client to the configure options.
Edit your ~/.bash_profile and add your MySQL binaries:


Then, install MySQLdb. First, download a copy of the latest version:

cd /extra/src
tar zxvf MySQL-python-1.2.2.tar.gz
cd MySQL-python-1.2.2



Trac provides an interface to Subversion, an integrated Wiki and convenient reporting facilities.


  • Python development libraries

    yum install python-devel
  • setuptools
    Download EasyInstall and run it to install the appropriate setuptools egg for your Python version:

    cd /extra/src


Subscribe to RSS - trac

Recent Updates

  • 11 months 1 week ago
  • 11 months 1 week ago
  • 11 months 1 week ago
    php 8.x
  • 11 months 1 week ago
  • 11 months 2 weeks ago
    Drop Centos 5/6 stuff