Setting up trac wiki
This document describes how to set up a Trac wiki. It is based on alpine 1.10.6 and should also be compatible with newer version.
- 1 General notes on this tutorial
- 2 Installing Trac
- 3 Create a Subversion repository
- 4 Creating a Project Environment
- 5 Configuring Authentication/Security
- 6 Running/Testing the Standalone Server
- 7 Configuration/Startup
- 8 Configuration/Startup
- 9 Startup
- 10 Backup
- 11 Boot
General notes on this tutorial
In this tutorial we use these settings. These values will re-appear in various places in the upcoming example.
You can use whatever settings you like.
|Path to Trac project:||/var/lib/trac/myproject|
Create a Subversion repository
Next we create an SVN repository to be connected to Trac:
Creating a Project Environment
Now lets initiate the environment
- Enter some project name when prompted
- Leave default sqlite DB (just press enter)
- Enter 'svn' as repository type
- Enter subversion repository path: /var/lib/subversion/myproject
You need to create a password file containing this information
Now you need to edit the passwordfile '/var/lib/trac/myproject/users.htdigest' and append the username and realm in plaintext.
Next is to give admin-rights to your 'tractester' account
Running/Testing the Standalone Server
Lets test if your password-file and other configurations worked as they are supposed to.
In case something is broken, this test would give you a hint on what's wrong.
Try connect to trac with webbrowser on http://localhost:8000
Edit '/etc/conf.d/tracd' and configure your variables
TRACD_PORT="80" TRACD_OPTS="--auth=*,/var/lib/trac/myproject/users.htdigest,example.com /var/lib/trac/myproject"
Set ownership to be tracd
Now you could start customizing your trac by editing '/var/lib/trac/myproject/conf/trac.ini'.
Now it's time to fire up your trac.
To create a backup of a live TracEnvironment, simply run:
Make it start during boot.