Edgewall Software

Changes between Version 279 and Version 280 of TracInstall


Ignore:
Timestamp:
May 29, 2009, 4:17:46 PM (15 years ago)
Author:
trac@…
Comment:

Added trac-admin deploy info

Legend:

Unmodified
Added
Removed
Modified
  • TracInstall

    v279 v280  
    147147  chown -R apache.apache /path/to/myproject
    148148
    149 '''Warning: If the trac.cgi files are not installed where you expect, then the current documentation is insufficient; it might be necessary to use the 'deploy' command in trac-admin.  See tickets http://trac.edgewall.org/ticket/7312 and possibly http://trac.edgewall.org/ticket/6827'''
    150 
    151149== Running the Standalone Server ==
    152150
     
    161159}}}
    162160
    163 
    164161== Running Trac on a Web Server ==
    165162
     
    169166
    170167Trac also supports [trac:TracOnWindowsIisAjp AJP] which may be your choice if you want to connect to IIS.
     168
     169==== Generating the Trac cgi-bin directory ====
     170
     171In order for Trac to function properly with FastCGI or mod_python, you need to have a trac.cgi file. This is an executable which loads the appropriate Python code. It can be generated using the `deploy` option of [wiki:TracAdmin trac-admin].
     172
     173There is, however, a bit of a chicken-and-egg problem. The [wiki: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:
     174{{{
     175mkdir -p /usr/share/trac/projects/my-project
     176trac-admin /usr/share/trac/projects/my-project initenv
     177trac-admin /usr/share/trac/projects/my-project deploy /tmp/deploy
     178mv /tmp/deploy/* /usr/share/trac
     179}}}
    171180
    172181==== Setting up the Plugin Cache ====
     
    228237----
    229238See also: [trac:TracInstallPlatforms TracInstallPlatforms], TracGuide, TracCgi, TracFastCgi, TracModPython, [wiki:TracModWSGI], TracUpgrade, TracPermissions
     239