Changes between Version 3 and Version 4 of TestManagerForTracPluginQuickSetup
- Timestamp:
- May 11, 2011, 12:45:11 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TestManagerForTracPluginQuickSetup
v3 v4 1 1 = Quick startup guide for Linux = 2 2 3 This guide will help you setup a quick and dirty environment with Apache, modwsgi and the Test Manager plugin in a few minutes. 3 This guide will help you ''setup a quick and dirty environment'' with '''Apache''', '''modwsgi''' and the '''Test Manager''' plugin in a few minutes. 4 Security is based on Apache password file, with basic authentication. 4 5 5 6 Run every command as root. The example takes into account a freshly installed Debian: … … 12 13 python setup.py install 13 14 }}} 14 3. Install Trac 0.12.2 using the now available easy_install:15 3. !Install Trac 0.12.2 using the now available easy_install: 15 16 {{{ 16 17 easy_install Trac … … 24 25 trac-admin /var/lib/trac/foo initenv 25 26 }}} 26 6. Create a password file for apache authentication, with an "admin" and a "roberto" users:27 6. Create a password file for apache authentication, for example with an "admin" and a "roberto" users: 27 28 {{{ 28 29 htpasswd -c /var/lib/trac/foo/conf/passwd admin 29 30 htpasswd /var/lib/trac/foo/conf/passwd roberto 30 31 }}} 31 7. Grant anonymousTRAC_ADMIN permissions:32 7. Grant the anonymous user TRAC_ADMIN permissions: 32 33 {{{ 33 34 trac-admin /var/lib/trac/foo permission add anonymous TRAC_ADMIN … … 35 36 8. Run trac through tracd just to see everything worked: 36 37 {{{ 37 tracd - -port 8000 /var/lib/trac/foo38 tracd -r --port 8000 /var/lib/trac/foo 38 39 }}} 39 40 9. Set trace level to DEBUG in trac, and log to file, using the admin panel. The admin panel can be accessed from Trac's navigation bar. 40 10. Configure apache and wsgi using exactly the info and paths Stefan provided. 41 {{{ 42 localhost:8000/foo/admin 43 }}} 44 10. Configure apache and wsgi as follows: 45 [[BR]] 46 'Snippet into apache2.conf:' 47 {{{ 48 WSGIScriptAlias /trac /var/lib/trac/foo/trac.wsgi 49 <Directory /var/lib/trac/foo/apache> 50 WSGIApplicationGroup %{GLOBAL} 51 Order deny,allow 52 Allow from all 53 </Directory> 54 <Location /trac> 55 AuthType Basic 56 AuthName "trac" 57 AuthUserFile /var/lib/trac/foo/conf/passwd 58 Require valid-user 59 </Location> 60 }}} 61 [[BR]] 62 '/var/lib/trac/foo/trac.wsgi:' 63 {{{ 64 import os 65 66 os.environ['TRAC_ENV'] = '/var/lib/trac/foo' 67 os.environ['PYTHON_EGG_CACHE'] = '/var/lib/trac/foo/eggs' 68 69 import trac.web.main 70 application = trac.web.main.dispatch_request 71 }}} 72 [[BR]] 41 73 11. Grant everyone 777 on /var/lib/trac: 42 74 {{{ … … 48 80 }}} 49 81 13. Verify trac was up and running, with basic authentication working, using the browser. 50 14. Download the egg files for the TestManagerForTracPlugin from sourceforge and extract the archive. 51 15. Open your browser to the foo trac project, on the admin panel, and install TracGenericClassPlugin from the first egg file. Note: the order in which you install the plugins is important. 82 14. Download the egg files for the TestManagerForTracPlugin from sourceforge and extract the archive: 83 {{{ 84 sourceforge.net/projects/testman4trac/files/ 85 }}} 86 15. Open your browser to the foo trac project, on the admin panel {{{http://localhost/trac/foo/admin}}}, and install TracGenericClassPlugin from the first egg file. Note: the order in which you install the plugins is important. 52 87 16. Install the TracGenericWorkflowPlugin the same way. This asks for a database upgrade. 53 88 17. To do it, open a command console as root and fire the command displayed in the browser. It should be something like the following: … … 71 106 }}} 72 107 23. Refresh your browser. The trac admin page should show the three installed plugins. 73 24. Click on the Test Manager tab in Trac's top navigation bar to start using the new plugins. 108 24. Click on the Test Manager tab in Trac's top navigation bar to start using the new plugin. 109