Jump to content

Server Config: Difference between revisions

From NikiWiki
Line 41: Line 41:
To configure Apache2 for multiple TRAC projects check:
To configure Apache2 for multiple TRAC projects check:
* http://projects.edgewall.com/trac/wiki/TracMultipleProjects
* http://projects.edgewall.com/trac/wiki/TracMultipleProjects
To enable CSS you have to do some more tweaking, by default the CSS directory gets handled by mod_python as well which leads to plain ugly HTML pages. You can change this like this:
<Location /trac>
  SetHandler none
</Location>
Add this to your Apache config and reload the page, it should look much better now.


Most TRAC people recommend to use <tt>fsfs</tt> as backend for Subversion instead of <tt>bdb</tt>. You might read this document here and decide on your own:
Most TRAC people recommend to use <tt>fsfs</tt> as backend for Subversion instead of <tt>bdb</tt>. You might read this document here and decide on your own:

Revision as of 11:51, 17 October 2005

FreeBSD

Apache2

  • port: www/apache2
  • make: make WITH_BERKELEYDB=db42 WITH_LDAP_MODULES=yes WITH_THREADS=yes

Subversion

  • port: devel/subversion-python
  • make: make -DWITH_MOD_DAV_SVN

Apache2 Subversion config

Basically you can take the following doc as reference:

Make sure you read the most recent version at the time writing (1.1 might be depricated)

The modules on FreeBSD can be found in /usr/local/libexec/apache2

TRAC config

First install mod_python:

  • port: www/mod_python3
  • make: make

After the install you will have a mod_python in /usr/local/libexec/apache2. Load this module in Apache2 according to the output you get during the install of the module.

Next step is to configure mod_python for use with TRAC:

Now create a TRAC project with

$ trac-admin /path/to/trac_project_env initenv

As it can be found at:

To configure Apache2 for multiple TRAC projects check:

To enable CSS you have to do some more tweaking, by default the CSS directory gets handled by mod_python as well which leads to plain ugly HTML pages. You can change this like this:

<Location /trac>
  SetHandler none
</Location>

Add this to your Apache config and reload the page, it should look much better now.


Most TRAC people recommend to use fsfs as backend for Subversion instead of bdb. You might read this document here and decide on your own:

If you decide to do so simply initialize projects like this:

$ svnadmin create --fs-type=fsfs /path/to/svn_project_env