Changes between Version 5 and Version 6 of TracOnOsxServerNoFink
- Timestamp:
- Feb 21, 2015, 9:52:58 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracOnOsxServerNoFink
v5 v6 1 1 [[PageOutline(2-4)]] 2 = Trac + SVN Installation on Mac OS X Server 10.4.7 = 3 4 == Requirements == 5 6 Mac OS X Server 10.4.7 + XCode 2.3 ([http://developer.apple.com/tools/xcode/ Download]) 7 8 ||[http://projects.edgewall.com/trac/ Trac]||0.9.6|| 2 3 = Trac + SVN Installation on Mac OS X Server 10.4.7 4 5 == Requirements 6 7 Mac OS X Server 10.4.7 + XCode 2.3; [http://developer.apple.com/tools/xcode/ download]. 8 9 ||[http://trac.edgewall.org/wiki/TracDownload#LatestStableRelease Trac]||0.9.6|| 9 10 ||[http://www.python.org/ Python]||2.3.5 (as installed with OS X 10.4.7)|| 10 11 ||[http://httpd.apache.org/ Apache]||2.0.58|| 11 12 ||[http://www.modpython.org/ mod_python]||3.2.8|| 12 13 ||[http://www.swig.org/ Swig]||1.3.29|| 13 || 14 ||[http://subversion.tigris.org/ Subversion]||1.3.2|| 14 15 ||[http://www.sqlite.org/ SQLite]||3.1.3 (as installed with OS X 10.4.7)|| 15 16 ||[http://pysqlite.org/ PySQLite]||2.2.2|| … … 19 20 == Preliminaries == 20 21 21 Install Mac OS X Server 10.4.7 and XCode 2.3 22 23 Download all binaries and untar it in the folder {{{/usr/local/temp}}} (for example) 24 25 == Binairies Installation == 26 '''The order of installation it's very important respect it, please! ''' 27 28 === Swig === 22 Install Mac OS X Server 10.4.7 and XCode 2.3. 23 24 Download all binaries and untar it for example in the folder {{{/usr/local/temp}}}. 25 26 == Binairies Installation 27 28 '''Note''': The order of installation is important. 29 30 === Swig 29 31 30 32 {{{ … … 35 37 }}} 36 38 37 === Apache 2 ===39 === Apache2 38 40 39 41 {{{ … … 44 46 }}} 45 47 46 === mod_python ===48 === mod_python 47 49 48 50 {{{ … … 53 55 }}} 54 56 55 === Subversion ===57 === Subversion 56 58 57 59 {{{ … … 65 67 }}} 66 68 67 swig svn python bindings 69 Swig svn python bindings: 68 70 69 71 {{{ … … 74 76 }}} 75 77 76 === PySQLite ===78 === PySQLite 77 79 78 80 {{{ … … 81 83 }}} 82 84 83 === Clearsilver === 85 === Clearsilver 86 87 '''Note''': ClearSilver has been replaced by the [http://genshi.edgewall.org/ Genshi templating engine] as of Trac 0.11. 84 88 85 89 {{{ … … 91 95 }}} 92 96 93 === Docutils ===94 95 {{{ 96 cd < 97 === Docutils 98 99 {{{ 100 cd <docutils-distribution-top-dir> 97 101 sudo python setup.py install 98 102 }}} 99 103 100 == Trac + SVN Configuration ==101 102 First choose a location for your subversion repository, e .g. {{{/var/svn/your_project}}}, and one for you trac environment, e.g.{{{/var/trac/your_project}}}.103 104 You may need to manage access rights on the trac env directory tree. This may be done by first creating a unix group dedicated to this trac project, e.g. {{{trac}}}, and assigning the various users to this group. The apache {{{www}}} user should be one of these. If you need a nice description of how to do this, look at the [http://developer.apple.com/internet/opensource/cvsoverview.html Apple CVSOverview] (then search for the text "create a new group" or "!NetInfo Manager").105 106 In my configuration Apache2 is the {{{nobody}}} user so you can try:104 == Trac + SVN Configuration 105 106 First choose a location for your subversion repository, eg {{{/var/svn/your_project}}}, and one for you Trac environment, eg {{{/var/trac/your_project}}}. 107 108 You may need to manage access rights on theTtrac env directory tree. This may be done by first creating a UNIX group dedicated to this trac project, eg {{{trac}}}, and assigning the various users to this group. The apache {{{www}}} user should be one of these. If you need a nice description of how to do this, look at [http://developer.apple.com/internet/opensource/cvsoverview.html Apple CVSOverview], then search for the text "create a new group" or "!NetInfo Manager". 109 110 In my configuration Apache2 is the {{{nobody}}} user, so you can try: 107 111 108 112 {{{ … … 113 117 }}} 114 118 115 === SVN Repository ===119 === SVN Repository 116 120 117 121 {{{ … … 119 123 }}} 120 124 121 Subversion executables are installed into /usr/local/bin, which is not in the default path in Mac OS X Server v10.4. To add /usr/local/bin to a user's default path, create a .profile file in your home directory (or simply add the line if you already have a .profile file):125 Subversion executables are installed into /usr/local/bin, which is not in the default path in Mac OS X Server v10.4. To add /usr/local/bin to a user's default path, create a `.profile` file in your home directory or simply add the line if you already have a `.profile` file: 122 126 123 127 {{{ … … 126 130 }}} 127 131 128 To make sure the repository is ok, play with it a little: 132 To make sure the repository works fine, try for example the following: 133 129 134 {{{ 130 135 cd /tmp … … 140 145 }}} 141 146 142 === Trac Environment ===147 === Trac Environment 143 148 144 149 {{{ … … 146 151 }}} 147 152 148 Your {{{trac-admin}}} binary may not be in your search path -if {{{trac-admin}}} isn't found, try:153 Your {{{trac-admin}}} binary may not be in your search path if {{{trac-admin}}} isn't found, try: 149 154 150 155 {{{ … … 153 158 }}} 154 159 155 == Apache2 Configuration and Right Access ==156 157 === apache httpd.conf ===158 159 Open and edit {{{httpd.conf}}} in {{{/usr/local/apache2/conf}}}160 161 Add this module (if not already exist ) at line ~265160 == Apache2 Configuration and Right Access 161 162 === Apache httpd.conf 163 164 Open and edit {{{httpd.conf}}} in {{{/usr/local/apache2/conf}}}. 165 166 Add this module (if not already existent) at line ~265: 162 167 163 168 {{{ … … 168 173 }}} 169 174 170 Change the process user of apache (nobody become www) at line ~300175 Change the process user of Apache (`nobody` becomes `www`) at line ~300: 171 176 172 177 {{{ … … 174 179 }}} 175 180 176 Add and configure access to Trac and SVN path at line ~1040 181 Add and configure access to Trac and SVN path at line ~1040: 177 182 178 183 {{{ … … 203 208 }}} 204 209 205 === Trac and SVN .htpasswd ===206 207 Trac an sSVN can share the same {{{.htpasswd}}}, but you can separate it if you want.208 209 create the {{{.htpasswd}}} in {{{/var/trac/your_project/}}}, for exampe:210 === Trac and SVN .htpasswd 211 212 Trac and SVN can share the same {{{.htpasswd}}}, but you can separate it if you want. 213 214 Create the {{{.htpasswd}}} in {{{/var/trac/your_project/}}}, for example: 210 215 211 216 {{{ … … 217 222 {{{[users]}}} is important for the AuthzSVNAccessFile. 218 223 219 For generate password you can use [http://www.engr.sjsu.edu/daluu/scripts/htpasswd.php this web site] 220 221 === SVN authz ===222 223 Edit the file {{{authz}}} 224 To generate a password, you can use [http://www.engr.sjsu.edu/daluu/scripts/htpasswd.php this web site]. 225 226 === SVN authz 227 228 Edit the file {{{authz}}} in {{{/var/svn/your_project/conf/}}}, for example: 224 229 225 230 {{{ … … 233 238 }}} 234 239 235 for more details on this configuration's file please [http://svnbook.red-bean.com/en/1.2/svn-book.html#svn.serverconfig.httpd.authz read this] 236 237 === Start apache2 ===238 239 Now you can start apache2:240 For more details on this configuration's file please [http://svnbook.red-bean.com/en/1.2/svn-book.html#svn.serverconfig.httpd.authz read this]. 241 242 === Start Apache2 243 244 Now you can start Apache2: 240 245 241 246 {{{ … … 245 250 You can check if everything is working well: 246 251 247 * for trac [http://localhost:80/your_project] 248 * for svn direct access [http://localhost:80/your_project/svn] 249 250 For external access please make your own apache's configuration 252 * for Trac [http://localhost:80/your_project] 253 * for SVN direct access [http://localhost:80/your_project/svn] 254 255 For external access please make your own apache's configuration. 256 257 === Author 251 258 252 259 thibaud.guillaume-gentil at epfl.ch