On this page... (hide)
1. Maintaining a Trac installation
1.1 Apache Configuration
Alias /trac /usr/share/trac/htdocs/ Alias /projectname /home/trac/projectname <Directory /home/trac/projectname> SetHandler mod_python PythonHandler trac.web.modpython_frontend PythonOption TracEnv /home/trac/projectname PythonOption TracUriRoot /projectname # This is needed for Trac to find the plugins SetEnv PYTHON_EGG_CACHE /usr/lib/python2.4/site-packages #PythonDebug on </Directory> # This needed for Trac to find its templates etc. <Directory "/usr/share/trac/htdocs"> Options -Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> # You need something like this to authenticate users <Location /projectname/login> AuthType Basic AuthName "Projectname Trac" # For use with LDAP AuthBasicProvider ldap AuthLDAPURL ldap://127.0.0.1:389/ou=people,dc=nesium,dc=net?uid?sub? Require ldap-group cn=admins,ou=groups,dc=nesium,dc=net Require ldap-group cn=actionscript,ou=svn,ou=groups,dc=nesium,dc=net </Location>
1.2 Creating the Trac project
sudo trac-admin /home/trac/projectname initenv
Trac needs to access that directory
sudo chown www-data /home/trac/projectname
Creating a Trac admin
sudo trac-admin /home/trac/projectname permission add username TRAC_ADMIN
1.3 Installing plugins
Ez setup for python (needed)
cd ~/install_files wget http://peak.telecommunity.com/dist/ez_setup.py python ez_setup.py
WebAdmin (included in 0.11 release of Trac)
cd ~/install_files svn co http://svn.edgewall.com/repos/trac/sandbox/webadmin/ cd webadmin python setup.py egg_info python setup.py bdist_egg cd dist sudo easy_install *.egg
enable in trac.ini
[components] webadmin.* = enabled
TicketDeletePlugin
cd ~/install_files svn co http://trac-hacks.org/svn/ticketdeleteplugin/0.10/ ticketdelete cd ticketdelete python setup.py egg_info python setup.py bdist_egg cd dist sudo easy_install *.egg
enable in trac.ini
[components] ticketdelete.* = enabled
After installing the plugin, you need to restart your web server!
1.4 References
- http://wiki.ubuntuusers.de/Trac
- http://open.calivia.com/projects/debian/wiki/TracPlugins
- http://natmaster.com/articles/installing_trac_0.10.php
2. Subversion
2.1 Creating a repository
cd /home mkdir svn chown www-data svn su www-data -c "svnadmin create svn/src"
3. Apache
3.1 Create SSL Certificate
openssl req -new -x509 -days 365 -nodes -out /etc/apache2/cert.pem -keyout /etc/apache2/cert.pem -subj '/C=US/ST=Yourstate/L=Yourcity/O=Your Company, Inc./OU=Development/CN=your.vhostname.com/emailAddress=youremail@example.com'
Zuletzt geändert am 04.01.2009 14:56 Uhr