Changes between Version 4 and Version 5 of TracInstall
- Timestamp:
- Feb 1, 2021, 2:06:05 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracInstall
v4 v5 1 = Trac Installation Guide for 1. 31 = Trac Installation Guide for 1.4 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 will still be supported until at leastTrac 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 are supported until 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://docutils.sourceforge.net docutils], version >= 0.3.9 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 97 101 for WikiRestructuredText. 98 * [http://pygments.org Pygments] for 102 * [http://pygments.org Pygments] for 99 103 [TracSyntaxColoring syntax highlighting]. 100 104 * [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 from103 an internal time zone implementation.104 105 * [https://pypi.org/project/passlib passlib] on Windows to decode [TracStandalone#BasicAuthorization:Usingahtpasswdpasswordfile htpasswd formats] other than `SHA-1`. 105 106 * [https://pypi.org/project/pyreadline pyreadline] on Windows for trac-admin [TracAdmin#InteractiveMode command completion]. … … 153 154 The optional dependencies can be installed from PyPI using `pip`: 154 155 {{{#!sh 155 $ pip install babel docutils pygments pytz textile 156 }}} 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. 157 170 158 171 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. … … 175 188 }}} 176 189 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. 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. 178 191 179 192 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. … … 226 239 === Running Trac on a Web Server 227 240 228 Trac provides various options for connecting to a "real" web server: 241 Trac provides various options for connecting to a "real" web server: 229 242 - [TracFastCgi FastCGI] 230 - [wiki:TracModWSGI Apache with mod_wsgi] 243 - [wiki:TracModWSGI Apache with mod_wsgi] 231 244 - [TracModPython Apache with mod_python] 232 245 - [TracCgi CGI] //(should not be used, as the performance is far from optimal)// … … 344 357 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. 345 358 346 The process of adding, removing, and configuring user accounts for authentication depends on the specific way you run Trac. 359 The process of adding, removing, and configuring user accounts for authentication depends on the specific way you run Trac. 347 360 348 361 Please refer to one of the following sections: