Changes between Version 4 and Version 5 of TracInstall


Ignore:
Timestamp:
12/24/20 10:50:34 (3 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracInstall

    v4 v5  
    1 = Trac Installation Guide for 1.4
     1= Trac Installation Guide for 1.3
    22[[TracGuideToc]]
    33
    4 Trac is written in the Python programming language and needs a database, [https://sqlite.org/ SQLite], [https://www.postgresql.org/ PostgreSQL], or [https://mysql.com/ MySQL]. For HTML rendering, Trac uses the [http://jinja.pocoo.org Jinja2] templating system, though Genshi templates are supported until Trac 1.5.1.
     4Trac is written in the Python programming language and needs a database, [https://sqlite.org/ SQLite], [https://www.postgresql.org/ PostgreSQL], or [https://mysql.com/ MySQL]. For HTML rendering, Trac uses the [http://jinja.pocoo.org Jinja2] templating system, though Genshi templates will still be supported until at least Trac 1.5.1.
    55
    66Trac can also be localized, and there is probably a translation available in your language. If you want to use the Trac interface in other languages, then make sure you have installed the optional package [#OtherPythonPackages Babel]. Pay attention to the extra steps for localization support in the [#InstallingTrac Installing Trac] section below. Lacking Babel, you will only get the default English version.
     
    7878
    7979Alternatively you can configure Trac to run in any of the following environments:
    80  * [https://httpd.apache.org/ Apache] with
    81    - [https://github.com/GrahamDumpleton/mod_wsgi mod_wsgi], see [wiki:TracModWSGI] and
     80 * [https://httpd.apache.org/ Apache] with 
     81   - [https://github.com/GrahamDumpleton/mod_wsgi mod_wsgi], see [wiki:TracModWSGI] and 
    8282     [https://code.google.com/p/modwsgi/wiki/IntegrationWithTrac ModWSGI IntegrationWithTrac].
    8383   - [http://modpython.org/ mod_python 3.5.0], see TracModPython
     
    8686   server (see [trac:TracOnWindowsIisAjp TracOnWindowsIisAjp])
    8787 * Microsoft IIS with FastCGI and a FastCGI-to-WSGI gateway (see [trac:CookBook/Installation/TracOnWindowsIisWfastcgi IIS with FastCGI])
    88  * a CGI-capable web server (see TracCgi), '''but usage of Trac as a cgi script
    89    is highly discouraged''', better use one of the previous options.
    90 
     88 * a CGI-capable web server (see TracCgi), '''but usage of Trac as a cgi script 
     89   is highly discouraged''', better use one of the previous options. 
     90   
    9191
    9292==== Other Python Packages
    9393
    94  * [http://babel.pocoo.org Babel], version 0.9.6 or >= 1.3,
     94 * [http://babel.pocoo.org Babel], version 0.9.6 or >= 1.3, 
    9595   needed for localization support
    96  * [http://pytz.sourceforge.net pytz] to get a complete list of time zones,
    97    otherwise Trac will fall back on a shorter list from
    98    an internal time zone implementation. Installing Babel
    99    will install pytz.
    100  * [http://docutils.sourceforge.net docutils], version >= 0.3.9
     96 * [http://docutils.sourceforge.net docutils], version >= 0.3.9
    10197   for WikiRestructuredText.
    102  * [http://pygments.org Pygments] for
     98 * [http://pygments.org Pygments] for 
    10399   [TracSyntaxColoring syntax highlighting].
    104100 * [https://pypi.org/project/textile Textile] for rendering the [https://github.com/textile/python-textile Textile markup language].
     101 * [http://pytz.sourceforge.net pytz] to get a complete list of time zones,
     102   otherwise Trac will fall back on a shorter list from
     103   an internal time zone implementation.
    105104 * [https://pypi.org/project/passlib passlib] on Windows to decode [TracStandalone#BasicAuthorization:Usingahtpasswdpasswordfile htpasswd formats] other than `SHA-1`.
    106105 * [https://pypi.org/project/pyreadline pyreadline] on Windows for trac-admin [TracAdmin#InteractiveMode command completion].
     
    154153The optional dependencies can be installed from PyPI using `pip`:
    155154{{{#!sh
    156 $ pip install babel docutils pygments textile
    157 }}}
    158 
    159 The optional dependencies can alternatively be
    160 specified using the `extras` keys in the setup file:
    161 {{{#!sh
    162 $ pip install Trac[babel,rest,pygments,textile]
    163 }}}
    164 
    165 `rest` is the extra that installs the `docutils`
    166 dependency.
    167 
    168 Include `mysql` or `psycopg2-binary` in the
    169 list if using the MySQL or PostgreSQL database.
     155$ pip install babel docutils pygments pytz textile
     156}}}
    170157
    171158Additionally, you can install several Trac plugins from PyPI (listed [https://pypi.org/search/?c=Framework+%3A%3A+Trac here]) using pip. See TracPlugins for more information.
     
    188175}}}
    189176
    190 [TracAdmin trac-admin] will prompt you for the information it needs to create the environment: the name of the project and the [TracEnvironment#DatabaseConnectionStrings database connection string]. If you're not sure what to specify for any of these options, just press `<Enter>` to use the default value.
     177[TracAdmin trac-admin] will prompt you for the information it needs to create the environment: the name of the project and the [TracEnvironment#DatabaseConnectionStrings database connection string]. If you're not sure what to specify for any of these options, just press `<Enter>` to use the default value. 
    191178
    192179Using the default database connection string will always work as long as you have SQLite installed. For the other [trac:DatabaseBackend database backends] you should plan ahead and already have a database ready to use at this point.
     
    239226=== Running Trac on a Web Server
    240227
    241 Trac provides various options for connecting to a "real" web server:
     228Trac provides various options for connecting to a "real" web server: 
    242229 - [TracFastCgi FastCGI]
    243  - [wiki:TracModWSGI Apache with mod_wsgi]
     230 - [wiki:TracModWSGI Apache with mod_wsgi] 
    244231 - [TracModPython Apache with mod_python]
    245232 - [TracCgi CGI] //(should not be used, as the performance is far from optimal)//
     
    357344Trac 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.
    358345
    359 The process of adding, removing, and configuring user accounts for authentication depends on the specific way you run Trac.
     346The process of adding, removing, and configuring user accounts for authentication depends on the specific way you run Trac. 
    360347
    361348Please refer to one of the following sections: