49 | | Trac can integrate with [http://subversion.tigris.org Subversion] version control software. Read more about the integration between Trac and Subversion from the wiki: TracSubversion. |
50 | | |
51 | | === Subversion Server & Client === |
52 | | 1. Download [http://subversion.tigris.org/files/documents/15/46906/Setup-Subversion-1.6.6.msi Setup-Subversion-1.6.6.msi] to your computer, and run it (double-click on ''Setup-Subversion-1.6.6.msi'' in your download folder). |
53 | | 1. Click the '''__R__un''' button in the ''Open File - Security Warning'' dialogue box, if it appears. |
54 | | 1. Click the '''__N__ext''' button on the ''Welcome to the Subversion Setup Wizard'' screen |
55 | | 1. Click the '''__N__ext''' button on the ''Information'' screen |
56 | | 1. Click the '''__N__ext''' button to select ''Binding for Apache 2.0.x'' |
57 | | 1. Type '''C:\Subversion\''' in to the ''Install subversion to:'' field, and click the '''__N__ext''' button |
58 | | 1. Click the '''Finish''' button |
59 | | 1. Open a command window |
60 | | a. Click the Windows '''Start''' button |
61 | | a. Click '''__R__un'''[[BR]]A dialogue box titled ''Run'' should appear |
62 | | a. Type '''cmd''' in to the ''__O__pen'' drop-down field, and click the '''OK''' button[[BR]]A black window should appear |
63 | | 1. Type '''cd C:\Subversion\bin''' and press the ''Return'' key |
64 | | 1. Type '''mkdir C:\svnrepositories''' and press the ''Return'' key |
65 | | 1. Type '''svnadmin create C:\svnrepositories\myproject''' and press the ''Return'' key |
66 | | 1. Type '''sc create svnserver binpath= "C:\Subversion\bin\svnserve.exe --service -r c:\svnrepositories" displayname= "Subversion Server (svnserver)" depend= Tcpip start= auto''' and press the ''Return'' key |
67 | | 1. Type '''net start svnserver''' and press the ''Return'' key |
68 | | |
69 | | === Subversion Bindings === |
70 | | 1. Open a command window |
71 | | a. Click the Windows '''Start''' button |
72 | | a. Click '''__R__un'''[[BR]]A dialogue box titled ''Run'' should appear |
73 | | a. Type '''cmd''' in to the ''__O__pen'' drop-down field, and click the '''OK''' button[[BR]]A black window should appear |
74 | | 1. Type '''cd C:\Python26\Scripts''' and press the ''Return'' key |
75 | | 1. Type '''easy_install -Z !http://subversion.tigris.org/files/documents/15/46888/svn-python-1.6.6.win32-py2.6.exe''' and press the ''Return'' key[[BR]]Verify no messages containing errors appeared |
76 | | |
77 | | == 4. mod_python (optional, and only available for Python v2.5 right now) == |
78 | | mod_python is needed if you want to use Apache HTTP server. |
79 | | 1. Download [http://apache.deathculture.net/httpd/modpython/win/3.3.1/mod_python-3.3.1.win32-py2.5-Apache2.2.exe mod_python-3.3.1.win32-py2.5-Apache2.2.exe] to your computer from [http://httpd.apache.org/modules/python-download.cgi Apache], and run it (double-click on ''mod_python-3.3.1.win32-py2.5-Apache2.0.exe'' in your download folder). |
80 | | 1. Click the '''__R__un''' button in the ''Open File - Security Warning'' dialogue box, if it appears. |
81 | | 1. Click the '''__N__ext >''' button |
82 | | 1. Click the '''__N__ext >''' button to confirm the Python directory |
83 | | 1. Click the '''__N__ext >''' button to install |
84 | | 1. Select the directory where ''Apache'' is installed |
85 | | 1. Click the '''OK''' button |
86 | | 1. Click the '''Finish''' button |
87 | | |
88 | | == 5. Plug-ins (optional) == |
89 | | See TracPlugins for details about plugin installation. |
90 | | For example: to install the SpamFilter plugin |
91 | | 1. Open a command window |
92 | | a. Click the Windows '''Start''' button |
93 | | a. Click '''__R__un'''[[BR]]A dialogue box titled ''Run'' should appear |
94 | | a. Type '''cmd''' in to the ''__O__pen'' drop-down field, and click the '''OK''' button[[BR]]A black window should appear |
95 | | 1. Type '''mkdir C:\src''' and press the ''Return'' key |
96 | | 1. Type '''cd C:\src''' and press the ''Return'' key |
97 | | 1. Type '''svn checkout !http://svn.edgewall.org/repos/trac/sandbox/spam-filter/trunk spam-filter''' and press the ''Return'' key[[BR]]Verify no messages containing errors appeared |
98 | | 1. Type '''cd spam-filter''' and press the ''Return'' key |
99 | | 1. Type '''python setup.py install''' and press the ''Return'' key[[BR]]Verify no messages containing errors appeared |
100 | | |
101 | | == 6. Genshi == |
102 | | 1. Open a command window |
103 | | a. Click the Windows '''Start''' button |
104 | | a. Click '''__R__un'''[[BR]]A dialogue box titled ''Run'' should appear |
105 | | a. Type '''cmd''' in to the ''__O__pen'' drop-down field, and click the '''OK''' button[[BR]]A black window should appear |
106 | | 1. Type '''mkdir C:\src''' and press the ''Return'' key |
107 | | 1. Type '''cd C:\src''' and press the ''Return'' key |
108 | | 1. Type '''svn checkout !http://svn.edgewall.org/repos/genshi/trunk genshi''' and press the ''Return'' key |
109 | | 1. Type '''cd genshi''' and press the ''Return'' key |
110 | | 1. Type '''python setup.py install''' and press the ''Return'' key[[BR]]Verify no messages containing errors appeared |
111 | | |
112 | | == 7. Trac == |
113 | | 1. Open a command window |
114 | | a. Click the Windows '''Start''' button |
115 | | a. Click '''__R__un'''[[BR]]A dialogue box titled ''Run'' should appear |
116 | | a. Type '''cmd''' in to the ''__O__pen'' drop-down field, and click the '''OK''' button[[BR]]A black window should appear |
117 | | 1. Choose '''__ONE__''' of the following options: |
118 | | === Option 1 === |
119 | | 1. Type '''cd C:\Python26\Scripts''' and press the ''Return'' key |
120 | | 1. Type '''easy_install Trac''' and press the ''Return'' key[[BR]]Verify no messages containing errors appeared |
121 | | === Option 2 === |
122 | | 1. Type '''mkdir C:\src''' and press the ''Return'' key |
123 | | 1. Type '''cd C:\src''' and press the ''Return'' key |
124 | | 1. Type '''svn checkout !http://svn.edgewall.org/repos/trac/trunk trac''' and press the ''Return'' key[[BR]]Verify no messages containing errors appeared |
125 | | 1. Type '''cd trac''' and press the ''Return'' key |
126 | | 1. Type '''python setup.py install''' and press the ''Return'' key[[BR]]Verify no messages containing errors appeared |
127 | | === Configure Trac environment === |
128 | | 1. Type '''mkdir C:\trac''' and press the ''Return'' key |
129 | | 1. Type '''cd C:\Python26\Scripts''' and press the ''Return'' key |
130 | | 1. Type '''trac-admin \trac initenv''' and press the ''Return'' key |
131 | | 1. Type in your project name (keep it succinct) and press the ''Return'' key |
132 | | 1. Press the '''Return''' key to select the default ''Database connection string'' |
133 | | 1. Press the '''Return''' key to select ''svn'' as the default ''Repository type'' |
134 | | 1. Type in the full path of your repository; e.g. ''/svnrepositories/myproject'', and press the '''Return''' key |
135 | | 1. Verify the installation of Trac works: |
136 | | a. Type in '''tracd --port 8000 C:\trac''' to start the Trac daemon |
137 | | a. Click the Windows '''Start''' button |
138 | | a. Click '''__R__un'''[[BR]]A dialogue box titled ''Run'' should appear |
139 | | a. Type '''!http://localhost:8000''' [[BR]]A browser window should open to a page with ''Available Projects'' |
140 | | a. Click on your project's name, and you should be taken to your project's Trac home page. |
141 | | |
142 | | == 8. Account Manager Plug-in == |
143 | | 1. Open a command window |
144 | | a. Click the Windows '''Start''' button |
145 | | a. Click '''__R__un'''[[BR]]A dialogue box titled ''Run'' should appear |
146 | | a. Type '''cmd''' in to the ''__O__pen'' drop-down field, and click the '''OK''' button[[BR]]A black window should appear |
147 | | 1. Type '''cd C:\Python26\Scripts''' and press the ''Return'' key |
148 | | 1. Type '''easy_install !http://trac-hacks.org/svn/accountmanagerplugin/trunk''' and press the ''Return'' key[[BR]]Verify no messages containing errors appeared |
149 | | 1. Type '''trac-admin C:\trac permission add anonymous TRAC_ADMIN''' and press the ''Return'' key |
150 | | 1. Click the Windows '''Start''' button |
151 | | 1. Click '''__R__un'''[[BR]]A dialogue box titled ''Run'' should appear |
152 | | 1. Type '''notepad C:\trac\conf\trac.ini''' in to the ''__O__pen'' drop-down field, and click the '''OK''' button |
153 | | 1. Copy the block of text below |
154 | | {{{ |
155 | | [components] |
156 | | acct_mgr.admin.accountmanageradminpage = enabled |
157 | | acct_mgr.api.accountmanager = enabled |
158 | | acct_mgr.db.sessionstore = enabled |
159 | | acct_mgr.htfile.htdigeststore = enabled |
160 | | acct_mgr.pwhash.htdigesthashmethod = enabled |
161 | | acct_mgr.web_ui.accountmodule = enabled |
162 | | acct_mgr.web_ui.loginmodule = enabled |
163 | | acct_mgr.web_ui.registrationmodule = enabled |
164 | | trac.web.auth.loginmodule = disabled |
165 | | }}} |
166 | | 1. Scroll down to the ''[header_logo]'' section, and place the cursor on the blank line above it |
167 | | 1. Paste the text you copied above in to the document |
168 | | 1. Save the file, and close notepad |
169 | | 1. Create an empty '''C:\trac\conf\passwords.txt''' |
170 | | a. Click the Windows '''Start''' button |
171 | | a. Click '''__R__un'''[[BR]]A dialogue box titled ''Run'' should appear |
172 | | a. Type '''notepad C:\trac\conf\passwords.txt''' in to the ''__O__pen'' drop-down field, and click the '''OK''' button |
173 | | a. Save the file, and close notepad |
174 | | 1. Click the Windows '''Start''' button |
175 | | 1. Click '''__R__un'''[[BR]]A dialogue box titled ''Run'' should appear |
176 | | 1. Type '''!http://localhost:8000/trac/admin''' [[BR]]A browser window should open to an ''Administration'' page |
177 | | 1. Click the '''Configuration''' hyperlink under ''Accounts'' in the menu on the left-hand side of the page |
178 | | 1. Select '''1''' from the drop-down list-box next to the ''!HtDigestStore'' heading |
179 | | 1. Select '''1''' from the drop-down list-box next to the ''!SessionStore'' heading |
180 | | 1. Type '''C:\trac\conf\passwords.txt''' in to the ''filename:'' field in the ''!HtDigestStore'' section |
181 | | 1. Type '''trac''' in to the ''realm:'' field under the ''!HtDigestStore'' section |
182 | | 1. Click the '''Save''' button |
183 | | 1. Click the '''Users''' hyperlink under the ''Accounts'' section in the menu on the left-hand side of the page |
184 | | 1. Type a username in to the ''Username:'' field on the right-hand side of the page in the ''Add Account:'' section |
185 | | 1. Type a password in to the ''Password:'' field on the right-hand side of the page in the ''Add Account:'' section |
186 | | 1. Type the password in to the ''Confirm password:'' field on the right-hand side of the page in the ''Add Account:'' section |
187 | | 1. Type a name in to the ''Name:'' field on the right-hand side of the page in the ''Add Account:'' section |
188 | | 1. Type an e-mail address in to the ''Email:'' field on the right-hand side of the page in the ''Add Account:'' section |
189 | | 1. Click the '''Add''' button |
190 | | 1. Click the '''Permissions''' hyperlink under the ''General'' section in the menu on the left-hand side of the page |
191 | | 1. Type the username in to the ''Subject:'' field on the right-hand side of the page in the ''Grant Permissions:'' section (this will become your admin user) |
192 | | 1. Select '''TRAC_ADMIN''' from the ''Action:'' drop-down list-box |
193 | | 1. Click the '''Add''' button |
194 | | 1. Check '''TRAC_ADMIN''' in the ''Action'' section in the center of the page, for the '''anonymous''' ''Subject'' |
195 | | 1. Click the '''Remove selected items''' button |
196 | | |
197 | | (You will need to log in as your admin user to access the admin panels from this point forward) |
198 | | |
199 | | |
200 | | More information about the TracEnvironment setup, and the TracStandalone web front-end is available. |
201 | | |
202 | | ---- |
203 | | See also: the TracOnWindows/Advanced instructions, TracOnWindows/Rewrite for discussing improvements to this page, ["0.10/TracOnWindows"] and ["Trac0.9/TracOnWindows"] for the previous version of this document. [http://how-to-solutions.com/how-to-install-trac-on-windows.html Installing Trac on Windows] |
| 24 | Finally, the installation instructions for previous major versions of Trac can still be found in the ["Trac0.9/TracOnWindows"], ["0.10/TracOnWindows"] pages. |