Changes between Version 409 and Version 410 of TracInstall
- Timestamp:
- Apr 26, 2015, 12:32:24 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracInstall
v409 v410 122 122 123 123 - Install Trac 1.0: 124 125 126 124 {{{#!sh 125 $ easy_install Trac==1.0 126 }}} 127 127 - Install latest development version: 128 129 130 128 {{{#!sh 129 $ easy_install Trac==dev 130 }}} 131 131 Note that in this case you won't have the possibility to run a localized version of Trac; 132 132 either use a released version or install from source. … … 147 147 - 148 148 {{{#!sh 149 pip install trac psycopg2149 $ pip install trac psycopg2 150 150 }}} 151 151 or: 152 152 - 153 153 {{{#!sh 154 pip install trac mysql-python154 $ pip install trac mysql-python 155 155 }}} 156 156 … … 168 168 169 169 {{{#!sh 170 python ./setup.py install170 $ python ./setup.py install 171 171 }}} 172 172 … … 178 178 If you install from source and want to make Trac available in other languages, make sure Babel is installed. Only then, perform the `install` (or simply redo the `install` once again afterwards if you realize Babel was not yet installed): 179 179 {{{#!sh 180 python ./setup.py install180 $ python ./setup.py install 181 181 }}} 182 182 … … 195 195 To install Trac to a custom location, or find out about other advanced installation options, run: 196 196 {{{#!sh 197 easy_install --help197 $ easy_install --help 198 198 }}} 199 199 … … 202 202 Specifically, you might be interested in: 203 203 {{{#!sh 204 easy_install --prefix=/path/to/installdir204 $ easy_install --prefix=/path/to/installdir 205 205 }}} 206 206 207 207 or, if installing Trac on a Mac OS X system: 208 208 {{{#!sh 209 easy_install --prefix=/usr/local --install-dir=/Library/Python/2.5/site-packages209 $ easy_install --prefix=/usr/local --install-dir=/Library/Python/2.5/site-packages 210 210 }}} 211 211 … … 220 220 A new environment is created using [TracAdmin trac-admin]: 221 221 {{{#!sh 222 trac-admin /path/to/myproject initenv222 $ trac-admin /path/to/myproject initenv 223 223 }}} 224 224 … … 238 238 Finally, make sure the user account under which the web front-end runs will have '''write permissions''' to the environment directory and all the files inside. This will be the case if you run `trac-admin ... initenv` as this user. If not, you should set the correct user afterwards. For example on Linux, with the web server running as user `apache` and group `apache`, enter: 239 239 {{{#!sh 240 chown -R apache.apache /path/to/myproject240 $ chown -R apache.apache /path/to/myproject 241 241 }}} 242 242 … … 253 253 After having created a Trac environment, you can easily try the web interface by running the standalone server [TracStandalone tracd]: 254 254 {{{#!sh 255 tracd --port 8000 /path/to/myproject255 $ tracd --port 8000 /path/to/myproject 256 256 }}} 257 257 258 258 Then, fire up a browser and visit `http://localhost:8000/`. You should get a simple listing of all environments that `tracd` knows about. Follow the link to the environment you just created, and you should see Trac in action. If you only plan on managing a single project with Trac you can have the standalone server skip the environment list by starting it like this: 259 259 {{{#!sh 260 tracd -s --port 8000 /path/to/myproject260 $ tracd -s --port 8000 /path/to/myproject 261 261 }}} 262 262 … … 271 271 Alternatively, the variable can be set in the shell before executing `tracd`: 272 272 {{{#!sh 273 PKG_RESOURCES_CACHE_ZIP_MANIFESTS=1 tracd --port 8000 /path/to/myproject273 $ PKG_RESOURCES_CACHE_ZIP_MANIFESTS=1 tracd --port 8000 /path/to/myproject 274 274 }}} 275 275 }}} … … 291 291 There is, however, a bit of a chicken-and-egg problem. The [TracAdmin trac-admin] command requires an existing environment to function, but complains if the deploy directory already exists. This is a problem, because environments are often stored in a subdirectory of the deploy. The solution is to do something like this: 292 292 {{{#!sh 293 mkdir -p /usr/share/trac/projects/my-project294 trac-admin /usr/share/trac/projects/my-project initenv295 trac-admin /usr/share/trac/projects/my-project deploy /tmp/deploy296 mv /tmp/deploy/* /usr/share/trac293 $ mkdir -p /usr/share/trac/projects/my-project 294 $ trac-admin /usr/share/trac/projects/my-project initenv 295 $ trac-admin /usr/share/trac/projects/my-project deploy /tmp/deploy 296 $ mv /tmp/deploy/* /usr/share/trac 297 297 }}} 298 298 … … 319 319 Assuming the deployment has been done this way: 320 320 {{{#!sh 321 trac-admin /var/trac/env deploy /path/to/shared/trac321 $ trac-admin /var/trac/env deploy /path/to/shared/trac 322 322 }}} 323 323 … … 362 362 Of course, you still need to make the Trac `htdocs/common` directory available through the web server at the specified URL, for example by copying (or linking) the directory into the document root of the web server: 363 363 {{{#!sh 364 ln -s /path/to/trac/htdocs/common /var/www/static.example.org/trac-common364 $ ln -s /path/to/trac/htdocs/common /var/www/static.example.org/trac-common 365 365 }}} 366 366 … … 386 386 Grant admin rights to user admin: 387 387 {{{#!sh 388 trac-admin /path/to/myproject permission add admin TRAC_ADMIN388 $ trac-admin /path/to/myproject permission add admin TRAC_ADMIN 389 389 }}} 390 390