Changes between Version 15 and Version 16 of TracInstall


Ignore:
Timestamp:
14/06/2017 12:47:23 (7 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracInstall

    v15 v16  
    1 = Trac Installation Guide for 1.1
     1= Trac Installation Guide for 1.2
    22[[TracGuideToc]]
    33
     
    140140 -
    141141 {{{#!sh
    142 pip install trac psycopg2
     142$ pip install trac psycopg2
    143143}}}
    144144or
    145145 -
    146146 {{{#!sh
    147 pip install trac mysql-python
     147$ pip install trac mysql-python
    148148}}}
    149149
     
    186186To install Trac to a custom location, or find out about other advanced installation options, run:
    187187{{{#!sh
    188 easy_install --help
     188$ easy_install --help
    189189}}}
    190190
     
    193193Specifically, you might be interested in:
    194194{{{#!sh
    195 easy_install --prefix=/path/to/installdir
     195$ easy_install --prefix=/path/to/installdir
    196196}}}
    197197or, if installing Trac on a Mac OS X system:
    198198{{{#!sh
    199 easy_install --prefix=/usr/local --install-dir=/Library/Python/2.6/site-packages
     199$ easy_install --prefix=/usr/local --install-dir=/Library/Python/2.6/site-packages
    200200}}}
    201201
     
    284284There 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:
    285285{{{#!sh
    286 mkdir -p /usr/share/trac/projects/my-project
    287 trac-admin /usr/share/trac/projects/my-project initenv
    288 trac-admin /usr/share/trac/projects/my-project deploy /tmp/deploy
    289 mv /tmp/deploy/* /usr/share/trac
     286$ mkdir -p /usr/share/trac/projects/my-project
     287$ trac-admin /usr/share/trac/projects/my-project initenv
     288$ trac-admin /usr/share/trac/projects/my-project deploy /tmp/deploy
     289$ mv /tmp/deploy/* /usr/share/trac
    290290}}}
    291291Don't forget to check that the web server has the execution right on scripts in the `/usr/share/trac/cgi-bin` directory.