Setup own Trac on Kapsi server

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.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].

More information about formatting options