1. First install Trac2. create env directory sudomkdirvarlibtrac create trac directory sudochmod-R777varlibtrac assign read
1. First install Trac2. in Ubuntu 8.04 and create the env directory sudo mkdir/var/lib/trac // create the trac directory sudo chmod-R 777/var/lib/trac // assign read
1. First install Trac in Ubuntu 8.04
2. Create an env directory
Sudo mkdir/var/lib/trac // create the trac directory
Sudo chmod-R 777/var/lib/trac // grant Read and Write Permissions
Sudo trac-admin/var/lib/trac initenv // create the env directory
The following message is displayed:
Project Name [My Project] trac // enter the Project Name trac
Database connection string [sqlite: db/trac. db] // Press enter. The default value is sqlite Database.
Repository type [svn] // Press enter. svn is connected by default.
Path to repository [/path/to/repos]/var/lib/svn // enter the svn repository Path/var/lib/svn
Templates directory [/usr/share/trac/templates] // press enter to automatically create a template in this directory, and env is created
3. env Enabled
Sudo tracd -- port 8000/var/lib/trac // enable port 8000 so that Trac can run on the local machine or IP address through: 8000/trac
4. Run Trac in Apache (using mod_python)
Sudo apt-get install libapache2-mod-python // install mod_python Module
Sudo vim/etc/apache2/conf. d/trac. conf // create the trac. conf configuration file and add content to it.
SetHandler mod_python
PythonHandler trac. web. modpython_frontend
PythonOption TracEnv/var/lib/trac
Restart apache2.