20 | | == Manual Install Not Needed == |
21 | | |
22 | | The OpenBSD project tweaks, packages and tests thousands of pieces of |
23 | | software in the ports tree for every release so you don't have to. |
24 | | Unless you specifically know why, you should just use packages instead |
25 | | of compiling from ports or, even worse, try to download tarballs and |
26 | | compile the programs yourself. |
27 | | |
28 | | == First-time setup == |
29 | | |
30 | | === Create the Subversion repository === |
31 | | {{{ |
32 | | $ svnadmin create /var/svn |
33 | | }}} |
34 | | |
35 | | === Create the Trac project environment === |
36 | | {{{ |
37 | | $ trac-admin /var/trac initenv |
38 | | Creating a new Trac environment at /var/trac |
39 | | |
40 | | Trac will first ask a few questions about your environment |
41 | | in order to initalize and prepare the project database. |
42 | | |
43 | | Please enter the name of your project. |
44 | | This name will be used in page titles and descriptions. |
45 | | |
46 | | Project Name [My Project]> (Your project name) |
47 | | |
48 | | Please specify the absolute path to the project Subversion repository. |
49 | | Repository must be local, and trac-admin requires read+write |
50 | | permission to initialize the Trac database. |
51 | | |
52 | | Path to repository [/var/svn/test]> /var/svn |
53 | | |
54 | | Please enter location of Trac page templates. |
55 | | Default is the location of the site-wide templates installed with Trac. |
56 | | |
57 | | Templates directory [/usr/local/share/trac/templates]> (Just press enter here) |
58 | | Creating and Initializing Project |
59 | | (Output removed) |
60 | | Don't forget, you also need to copy (or symlink) "trac/cgi-bin/trac.cgi" |
61 | | to you web server's /cgi-bin/ directory, and then configure the server. |
62 | | cp /usr/local/share/trac/cgi-bin/trac.cgi /usr/local/apache2/cgi-bin |
63 | | |
64 | | If you're using Apache, this config example snippet might be helpful: |
65 | | |
66 | | Alias /trac "/var/www/users/trac/htdocs/" |
67 | | <Location "/cgi-bin/trac.cgi"> |
68 | | SetEnv TRAC_ENV "/var/trac" |
69 | | </Location> |
70 | | |
71 | | $ chmod -R a+rw /var/svn/repo |
72 | | }}} |