Howto trac-forge with jinja-1.2-1
Required to install :
- Apache2
- mod_python
- python-jinja (version 1.2-1)
- tracforge
On Debian based distribution
sudo apt-get install libapache2-mod-python libapache2-svn trac
To install tracforge on your computer execute as root the following command :
make install
If you want to work as the developer use this command it will not copy into the python library but only create a simlink so that you can continue to modify files.
make develop
Classical tree view of the folders :
<tracforge folder>/
|-archives
|-demos
|-forge /
|- forge.ini
|- media (have to be retrieve from the tracforge folder)
\- template (have to be retrieve from the tracforge folder)
|-svn (need the user to be the same as the http daemon)
|-trac (need the user to be the same as the http daemon)
Sample of Apache2 file configuration :
<virtualhost *>
ServerAdmin mail@mail.fr
ServerName tracforge
LogLevel warn
ErrorLog /var/log/apache2/error.log
CustomLog /var/log/apache2/access.log combined
DocumentRoot <tracforgepath>/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory <tracforgepath>/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
<Location "/forge">
SetHandler mod_python
PythonOption ForgeConfig <tracforgepath>/www/forge/forge.ini
PythonHandler tracforge.modpython
</Location>
<Location "/forge/media">
SetHandler None
</Location>
ScriptAlias /trac /usr/share/trac/cgi-bin/trac.cgi
<location "/trac">
SetEnv TRAC_ENV_PARENT_DIR "<tracforgepath>/www/trac"
SetEnv PYTHON_EGG_CACHE "/tmp"
</location>
<Location "/subversion">
DAV svn
SVNListParentPath on
SVNParentPath <tracforgepath>/www/svn
</Location>
</virtualhost>
Howto trac-forge with jinja-0.9-2
Required to install :
- Apache2
- mod_python
- python-jinja (version jinja-0.9-2)
You have to checkout the tagged version for 0.9-2 on the svn repository.
However this version does support setuptool to get installed.
You have to specify the python path in the Apache2 configuration.
Sample of Apache2 file configuration :
<VirtualHost *>
ServerName ServerName
SetHandler mod_python
PythonHandler projects
PythonPath "['/part/to/trac-forge'] + sys.path"
Alias /media /part/to/trac-forge/media
<Location "/media/">
SetHandler None
</Location>
</VirtualHost>
