Changes between Version 6 and Version 7 of TracInstall


Ignore:
Timestamp:
Sep 8, 2024, 12:14:12 PM (3 months ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracInstall

    v6 v7  
    88If you're interested in contributing new translations for other languages or enhancing the existing translations, please have a look at [trac:wiki:TracL10N TracL10N].
    99
    10 These are generic instructions for installing and setting up Trac. While you may find instructions for installing Trac on specific systems at [trac:TracInstallPlatforms TracInstallPlatforms], please '''first read through these general instructions''' to get a good understanding of the tasks involved.
     10What follows are generic instructions for installing and setting up Trac. While you may find instructions for installing Trac on specific systems at [trac:TracInstallPlatforms TracInstallPlatforms], please '''first read through these general instructions''' to get a good understanding of the tasks involved.
    1111
    1212[[PageOutline(2-3,Installation Steps,inline)]]
     
    1414== Dependencies
    1515=== Mandatory Dependencies
    16 
    1716To install Trac, the following software packages must be installed:
    1817
     
    2120 * [https://pypi.org/project/Jinja2 Jinja2], version >= 2.9.3
    2221
    23 You also need a database system and the corresponding Python bindings. The database can be either SQLite, PostgreSQL or MySQL.
     22You also need a database system and the corresponding python bindings. The database can be either SQLite, PostgreSQL or MySQL.
    2423
    2524==== For the SQLite database #ForSQLite
     
    5049==== Subversion
    5150
    52 [https://subversion.apache.org/ Subversion], 1.14.x or later and the '''corresponding''' Python bindings.
     51[https://subversion.apache.org/ Subversion], 1.14.x or later and the '''''corresponding''''' Python bindings.
    5352
    5453There are [https://subversion.apache.org/packages.html pre-compiled SWIG bindings] available for various platforms. See [trac:TracSubversion#GettingSubversion getting Subversion] for more information.
     
    5655{{{#!div style="border: 1pt dotted; margin: 1em"
    5756**Note:**
    58 * Trac '''doesn't''' use [https://pypi.org/project/PySVN PySVN], nor does it work yet with the newer `ctype`-style bindings.
     57* Trac '''doesn't''' use [http://pysvn.tigris.org/ PySVN], nor does it work yet with the newer `ctype`-style bindings.
    5958* If using Subversion, Trac must be installed on the '''same machine'''. Remote repositories are [trac:ticket:493 not supported].
    6059}}}
     
    7170
    7271==== Web Server
    73 
    7472A web server is optional because Trac is shipped with a server included, see the [#RunningtheStandaloneServer Running the Standalone Server] section below.
    7573
     
    8078   - [http://modpython.org/ mod_python 3.5.0], see TracModPython
    8179 * a [https://fastcgi-archives.github.io FastCGI]-capable web server (see TracFastCgi)
    82  * an [https://tomcat.apache.org/connectors-doc/ajp/ajpv13a.html AJP]-capable web server (see [trac:TracOnWindowsIisAjp TracOnWindowsIisAjp])
     80 * an [https://tomcat.apache.org/connectors-doc/ajp/ajpv13a.html AJP]-capable web
     81   server (see [trac:TracOnWindowsIisAjp TracOnWindowsIisAjp])
    8382 * Microsoft IIS with FastCGI and a FastCGI-to-WSGI gateway (see [trac:CookBook/Installation/TracOnWindowsIisWfastcgi IIS with FastCGI])
    84  * a CGI-capable web server (see TracCgi), '''but usage of Trac as a cgi script is highly discouraged''', better use one of the previous options.
     83 * a CGI-capable web server (see TracCgi), '''but usage of Trac as a cgi script
     84   is highly discouraged''', better use one of the previous options.
     85
    8586
    8687==== Other Python Packages
    8788
    88  * [http://babel.pocoo.org Babel], version >= 2.2, needed for localization support
    89  * [http://pytz.sourceforge.net pytz] to get a complete list of time zones, otherwise Trac will fall back on a shorter list from an internal time zone implementation. Installing Babel will install pytz.
    90  * [http://docutils.sourceforge.net docutils], version >= 0.14, for WikiRestructuredText.
    91  * [http://pygments.org Pygments], version >= 1.0, for [TracSyntaxColoring syntax highlighting].
    92  * [https://pypi.org/project/textile Textile], version >= 2.3, for rendering the [https://github.com/textile/python-textile Textile markup language].
     89 * [http://babel.pocoo.org Babel], version >= 2.2,
     90   needed for localization support
     91 * [http://pytz.sourceforge.net pytz] to get a complete list of time zones,
     92   otherwise Trac will fall back on a shorter list from
     93   an internal time zone implementation. Installing Babel
     94   will install pytz.
     95 * [http://docutils.sourceforge.net docutils],
     96   version >= 0.14, for WikiRestructuredText.
     97 * [http://pygments.org Pygments], version >= 1.0,
     98   for [TracSyntaxColoring syntax highlighting].
     99 * [https://pypi.org/project/textile Textile],
     100   version >= 2.3,
     101   for rendering the [https://github.com/textile/python-textile Textile markup language].
    93102 * [https://pypi.org/project/passlib passlib] on Windows to decode [TracStandalone#BasicAuthorization:Usingahtpasswdpasswordfile htpasswd formats] other than `SHA-1`.
    94103 * [https://pypi.org/project/pyreadline pyreadline] on Windows for trac-admin [TracAdmin#InteractiveMode command completion].
     
    107116
    108117=== Using `pip`
    109 
    110 `pip` is the modern Python package manager and is included in Python distributions. `pip` will automatically resolve the //required// dependencies (Jinja2 and setuptools) and download the latest packages from pypi.org.
     118`pip` is the modern Python package manager and is included in Python distributions. `pip` will automatically
     119resolve the //required// dependencies (Jinja2 and
     120setuptools) and download the latest packages from pypi.org.
    111121
    112122You can also install directly from a source package. You can obtain the source in a tar or zip from the [trac:TracDownload] page. After extracting the archive, change to the directory containing `setup.py` and run:
     
    118128`pip` supports numerous other install mechanisms. It can be passed the URL of an archive or other download location. Here are some examples:
    119129
     130* Install the latest stable version from a zip archive:
     131{{{#!sh
     132$ pip install https://download.edgewall.org/trac/Trac-latest.zip
     133}}}
    120134* Install the latest development version from a tar archive:
    121135{{{#!sh
     
    124138* Install the unreleased 1.4-stable from subversion:
    125139{{{#!sh
    126 $ pip install svn+https://svn.edgewall.org/repos/trac/branches/1.4-stable
     140$ pip install svn+https://svn.edgewall.org/repos/trac/branches/1.2-stable
    127141}}}
    128142* Install the latest development preview (//not recommended for production installs//):
     
    253267Assuming the deployment has been done this way:
    254268{{{#!sh
    255 $ trac-admin /var/trac/<project> deploy /var/www/trac
     269$ trac-admin /var/trac/<project> deploy /var/www
    256270}}}
    257271
    258272Add the following snippet to Apache configuration, changing paths to match your deployment. The snippet must be placed ''before'' the `ScriptAlias` or `WSGIScriptAlias` directive, because those directives map all requests to the Trac application:
    259273{{{#!apache
    260 Alias /trac/chrome /var/www/trac/htdocs
    261 
    262 <Directory "/var/www/trac/htdocs">
     274Alias /trac/chrome /path/to/trac/htdocs
     275
     276<Directory "/path/to/www/trac/htdocs">
    263277  # For Apache 2.2
    264278  <IfModule !mod_authz_core.c>
     
    316330== Configuring Authentication
    317331
    318 Trac uses HTTP authentication. You'll need to configure your web server to request authentication when the `.../login` URL is hit (the virtual path of the "login" button). Trac will automatically pick the `REMOTE_USER` variable up after you provide your credentials. Therefore, all user management goes through your web server configuration. Please consult the documentation of your web server for more info.
     332Trac uses HTTP authentication. You'll need to configure your webserver to request authentication when the `.../login` URL is hit (the virtual path of the "login" button). Trac will automatically pick the `REMOTE_USER` variable up after you provide your credentials. Therefore, all user management goes through your web server configuration. Please consult the documentation of your web server for more info.
    319333
    320334The process of adding, removing, and configuring user accounts for authentication depends on the specific way you run Trac.