Changes between Version 31 and Version 32 of TracOnWindows
- Timestamp:
- Jul 29, 2004, 11:39:50 AM (20 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracOnWindows
v31 v32 8 8 * PySQLite 0.5.0-py2.3 9 9 * Trac 0.6.1 10 * docutils 0.3.3 10 11 11 12 Contact [mailto:Daragh@i2i-Tech.com Daragh Fitzpatrick] for more info. … … 34 35 http://subversion.tigris.org 35 36 37 5. Install docutils 38 http://docutils.sourceforge.net/ 39 {{{ 40 expand and run from the expanded docutils-xxx directory 41 > D:\python23\python install.py 42 }}} 43 36 44 === Create Repository === 37 5. Create repository directory45 6. Create repository directory 38 46 {{{ 39 47 D:\> md d:\svn 40 48 }}} 41 49 42 6. Create repository50 7. Create repository 43 51 {{{ 44 52 D:\> svnadmin create d:\svn\repo1 45 53 }}} 46 54 47 7. Create skeleton repository structure in d:\temp\project55 8. Create skeleton repository structure in d:\temp\project 48 56 Example: 49 57 {{{ … … 60 68 }}} 61 69 62 8. Build repository tree70 9. Build repository tree 63 71 {{{ 64 72 D:\> svn import d:\temp\project file:///d:/svn/repo1 -m "Initial Load" 65 73 }}} 66 74 67 9. Create local sandbox75 10. Create local sandbox 68 76 {{{ 69 77 D:\> svn checkout file:///d:/svn/repo1 d:\project … … 72 80 === Configure Apache === 73 81 74 1 0. Copy files82 11. Copy files 75 83 {{{ 76 84 D:\> copy d:\progra~1\subver~1\httpd\*.* d:\progra~1\apache~1\apache2\modules … … 81 89 }}} 82 90 83 1 1. Create password file (w/user 'admin')91 12. Create password file (w/user 'admin') 84 92 {{{ 85 93 D:\> d:\progra~1\apache~1\apache2\bin\htpasswd -cm d:\svn\.htaccess admin 86 94 }}} 87 95 88 1 2. Configure Apache (edit httpd.conf)89 1 2.1. Restrict access/lockdown as appropriate90 91 1 2.2. Add Modules to httpd.conf92 93 1 2.1.1. Uncomment:96 13. Configure Apache (edit httpd.conf) 97 13.1. Restrict access/lockdown as appropriate 98 99 13.2. Add Modules to httpd.conf 100 101 13.1.1. Uncomment: 94 102 {{{ 95 103 LoadModule dav_module modules/mod_dav.so 96 104 LoadModule dav_fs_module modules/mod_dav_fs.so 97 105 }}} 98 1 2.1.2. Add (after):106 13.1.2. Add (after): 99 107 {{{ 100 108 # Subversion … … 103 111 }}} 104 112 105 1 2.3. Add location root for multiple repositories113 13.3. Add location root for multiple repositories 106 114 {{{ 107 115 # Subversion … … 118 126 }}} 119 127 120 1 3. Restart your machine121 122 1 4. Test your install of Subversion128 14. Restart your machine 129 130 15. Test your install of Subversion 123 131 http://[hostname]:80/svn/repo1 124 132 … … 127 135 128 136 === Setup Users === 129 1 5. Add users to password file137 16. Add users to password file 130 138 {{{ 131 139 D:\> d:\progra~1\apache~1\apache2\bin\htpasswd -m d:\svn\.htaccess user … … 133 141 134 142 === Install Trac Prerequisites === 135 1 6. Install Subversion Python Bindings143 17. Install Subversion Python Bindings 136 144 (Get from same download page as Subversion) 137 145 [[br]]Copy libsvn and svn directories to D:\Python23\Lib 138 146 139 1 7. Install SQLite147 18. Install SQLite 140 148 http://www.sqlite.org 141 149 [[br]]Copy sqlite.exe to D:\Program Files\SQLite 142 150 143 1 8. Install PySQLite151 19. Install PySQLite 144 152 http://pysqlite.sourceforge.net 145 153 146 19. Install Trac154 20. Install Trac 147 155 http://www.edgewall.com/products/trac/ 148 156 … … 157 165 158 166 === Fix a few things === 159 2 0. (BUG) Edit first line of D:\Python23\Scripts\trac-admin to have:167 21. (BUG) Edit first line of D:\Python23\Scripts\trac-admin to have: 160 168 {{{ 161 169 … … 163 171 }}} 164 172 165 2 1. (BUG) Edit first line of D:\Python23\share\trac\cgi-bin\trac.cgi to have:173 22. (BUG) Edit first line of D:\Python23\share\trac\cgi-bin\trac.cgi to have: 166 174 {{{ 167 175 … … 169 177 }}} 170 178 171 2 2. Copy CGI179 23. Copy CGI 172 180 {{{ 173 181 D:\> copy d:\python23\share\trac\cgi-bin\trac.cgi d:\progra~1\apache~1\apache2\cgi-bin 174 182 }}} 175 183 176 2 3. (BUG) not able to run trac-admin initenv... Not available in 0.6.1 ''(This does work in 0.7.1)184 24. (BUG) not able to run trac-admin initenv... Not available in 0.6.1 ''(This does work in 0.7.1) 177 185 178 186 === Configure Trac DB === … … 180 188 The trac database can be named to match the subversion repository it is working with, which is especially useful if more than one repository will ever be created. In this example {{{"trac.db"}}} would read as {{{"repo1.db"}}} 181 189 182 2 4. Run trac-admin190 25. Run trac-admin 183 191 {{{ 184 192 D:\Python23\Scripts> python trac-admin d:/svn/trac.db 185 193 }}} 186 194 187 2 5. Initialize DB195 26. Initialize DB 188 196 {{{ 189 197 Trac [d:/svn/trac.db]> initdb … … 205 213 If you get an error here stating that libdb42.dll was not found, copy ''[SVN PATH]''\bin\libdb42.dll to ''[PYTHON PATH]''\lib\libsvn\, then try again. 206 214 207 2 6. (BUG) Load Wiki215 27. (BUG) Load Wiki 208 216 {{{ 209 217 Trac [d:/svn/trac.db]> wiki load d:/python23/share/trac/wiki-default 210 218 }}} 211 219 212 2 7. Add administrative permissions (the below adds all permissions for 'admin' user)220 28. Add administrative permissions (the below adds all permissions for 'admin' user) 213 221 {{{ 214 222 Trac [d:/svn/trac.db]> … … 219 227 === Add Trac to Apache === 220 228 221 2 8. Edit httpd.conf:229 29. Edit httpd.conf: 222 230 Add: (copy this - there's a typo in Edgewall's version) 223 231 {{{ 224 232 # TRAC 225 Alias /trac "D:/Python23/share/trac /htdocs"233 Alias /trac "D:/Python23/share/trac" 226 234 <Directory "D:/Python23/share/trac/htdocs"> 227 235 Options Indexes MultiViews … … 264 272 Or compile it into Apache. 265 273 266 29. Restart Apache267 268 3 0. Hold your breath, test Trac install274 30. Restart Apache 275 276 31. Hold your breath, test Trac install 269 277 http://[hostname]:80/cgi-bin/trac.cgi 270 278 … … 274 282 275 283 === Finally... === 276 3 1. Install Subversion clients as necessary (try [http://rapidsvn.tigris.org RapidSVN] & [http://tortoisesvn.tigris.org/ TortoiseSVN])277 278 3 2. Don't forget to lock down the security on the box!279 280 3 3. Now go get a *real* drink284 32. Install Subversion clients as necessary (try [http://rapidsvn.tigris.org RapidSVN] & [http://tortoisesvn.tigris.org/ TortoiseSVN]) 285 286 33. Don't forget to lock down the security on the box! 287 288 34. Now go get a *real* drink