Changes between Version 2 and Version 3 of TracInstall
- Timestamp:
- 12/24/20 10:50:35 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracInstall
v2 v3 1 = Trac Installation Guide for 1. 41 = Trac Installation Guide for 1.3 2 2 [[TracGuideToc]] 3 3 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 untilTrac 1.5.1.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 will still be supported until at least Trac 1.5.1. 5 5 6 6 Trac 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. … … 78 78 79 79 Alternatively 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 82 82 [https://code.google.com/p/modwsgi/wiki/IntegrationWithTrac ModWSGI IntegrationWithTrac]. 83 83 - [http://modpython.org/ mod_python 3.5.0], see TracModPython … … 86 86 server (see [trac:TracOnWindowsIisAjp TracOnWindowsIisAjp]) 87 87 * 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 91 91 92 92 ==== Other Python Packages 93 93 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, 95 95 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 101 97 for WikiRestructuredText. 102 * [http://pygments.org Pygments] for 98 * [http://pygments.org Pygments] for 103 99 [TracSyntaxColoring syntax highlighting]. 104 100 * [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. 105 104 * [https://pypi.org/project/passlib passlib] on Windows to decode [TracStandalone#BasicAuthorization:Usingahtpasswdpasswordfile htpasswd formats] other than `SHA-1`. 106 105 * [https://pypi.org/project/pyreadline pyreadline] on Windows for trac-admin [TracAdmin#InteractiveMode command completion]. … … 154 153 The optional dependencies can be installed from PyPI using `pip`: 155 154 {{{#!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 }}} 170 157 171 158 Additionally, 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. … … 188 175 }}} 189 176 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. 191 178 192 179 Using 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. … … 239 226 === Running Trac on a Web Server 240 227 241 Trac provides various options for connecting to a "real" web server: 228 Trac provides various options for connecting to a "real" web server: 242 229 - [TracFastCgi FastCGI] 243 - [wiki:TracModWSGI Apache with mod_wsgi] 230 - [wiki:TracModWSGI Apache with mod_wsgi] 244 231 - [TracModPython Apache with mod_python] 245 232 - [TracCgi CGI] //(should not be used, as the performance is far from optimal)// … … 357 344 Trac 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. 358 345 359 The process of adding, removing, and configuring user accounts for authentication depends on the specific way you run Trac. 346 The process of adding, removing, and configuring user accounts for authentication depends on the specific way you run Trac. 360 347 361 348 Please refer to one of the following sections: