Some advices for common programmers problems

Install on Debian is as simple as apt-get install trac, then configure mod_python on /etc/apache2/sites-availble/trac:


Alias /trac-htdocs /srv/trac/edokumenty/htdocs

Options Indexes Multiviews FollowSymLinks
Order allow,deny
Allow from all


SetHandler mod_python
PythonInterpreter main_interpreter
PythonHandler trac.web.modpython_frontend
PythonOption TracEnv /srv/trac/edokumenty
PythonOption TracUriRoot /trac

# You need this to allow users to authenticate
# trac.htpasswd can be created with
# cmd ‘htpasswd -c trac.htpasswd’ (UNIX)
# do ‘man htpasswd’ to see all the options

AuthType Basic
AuthName “Wymagana autoryzacja”
AuthUserFile /srv/trac/edokumenty/conf/trac.htpasswd
Require valid-user

then a2ensite trac

For problems with overriding css best solution is to link htdocs in Location directly to procest htdocs.
Jquery.js script error shoud be fixed by replacing the symbolic link to proper location -> /usr/share/javascript/jquery/jquery.js