Short note how to setup your own Trac (0.11) on kapsi.fi (where I run my services): - cd ~ - mkdir trac - trac-admin trac initenv – Fill in name – SQLite probably is enough – No VCS – No repo - trac-admin trac deploy sites/mysite.example.com/www/trac - cd sites/mysite.example.com/www/trac/cgi-bin - rm trac.cgi trac.wsgi - chmod 755 trac.fcgi - Browse to http://mysite.example.com/trac/cgi-bin/trac.fcgi/
Clean up URL
- cd sites/mysite.example.com/www/trac
- vim .htaccess
- Put this in the file:
RewriteEngine On
RewriteBase /trac
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /cgi-bin/trac.fcgi/$1 [L,QSA]
RewriteRule ^$ cgi-bin/trac.fcgi [L]
- Browser to http://mysite.example.com/trac/
I might later on describe how to setup with MySQL and connect to some VCS (Git or Hg). This if I find time and interest.