Comments on How to Install Trac Project Management Tool on Ubuntu 18.04 LTS
Trac is a free and an open source Web-based project management and bug tracking system that helps developers to write great software while staying out of the way. In this tutorial, we will learn how to install Trac on Ubuntu 18.04.
7 Comment(s)
Comments
ERROR: Site test does not exist! This is the error i get when i try running the "sudo a2ensite test" command
Use:
sudo a2enconf trac
instead or if this doe snotw ork use:
sudo a2enconf trac.conf
This instruction got me further than the trac site. But when I modify the trac.conf file acoording to your instruction the statement WSGIScriptAlias causes apache2 to not restart. Removing this line and all is ok. But I don' get a login in prompt, just a list of files in the test directory. Do you know what I did wrong?
I have 2 issues - I cannot get any password from the .htdigest to accept (password prompt keeps coming back) despite resetting password and restarting apache.
If I remove auth completely, I get a "forbidden" error from Apache, presumably as it is trying to find a directory.
Any dieas?
Thank you for the clear instructions! My first project works great but I need a second instance of trac that is completely isolated from the first with a different set of users and different ticket fields. Lets call it test2. After running the initenv command I get a test2 directory under /var/lib/trac but not under /var/www/html/trac. And failed attempts to access through browser http://hostname:port/trac/test2. Any help would be great. Thanks
Found a manual way to do this... copy the "/var/www/html/trac/test" directory to a new "test2" directory. It's only 1.5MBytes.
/var/www/html/trac$ sudo mkdir test2
/var/www/html/trac/test$ sudo cp -r ./cgi-bin /var/www/html/trac/test2
/var/www/html/trac/test$ sudo cp -r ./htdocs /var/www/html/trac/test2
make sure owner and permission match the "test" directories and files
#Replace all instances of test to test2:
/var/www/html/trac/test$ grep -r "test" .
./cgi-bin/trac.cgi: os.environ['TRAC_ENV'] = '/var/lib/trac/test'
./cgi-bin/trac.wsgi: environ.setdefault('trac.env_path', '/var/lib/trac/test')
./cgi-bin/trac.fcgi: os.environ['TRAC_ENV'] = '/var/lib/trac/test'
Add a second Alias and Location block in trac.conf, replace "test" with "test2":
WSGIScriptAlias /trac/test2 /var/www/html/trac/test2/cgi-bin/trac.wsgi <Location /trac/test2> AuthType Digest AuthName "test2" AuthUserFile /var/lib/trac/test2/.htdigest Require valid-user </Location>Restart server and access the new trac, test2 instance with :
http://your-domain-name/trac/test2
I restore my files to new server its show in error message like below,
Oops… Trac detected an internal error: OperationalError: no such column: ipnr