Trac:HowToInstall
lastmod 2020-08-26created 2015-04-237 edits
Notes on how to install TRAC.
| WARNING |
| When integrating with httpd, use mod_wsgi instead of mod_python. 1 |
CentOS7 install
Install the Python development package and setuptools.
Install Pip, then install Genshi for HTML rendering and Trac.
$ wget https://bootstrap.pypa.io/get-pip.py
$ sudo python get-pip.py
$ sudo pip install -U setuptools
$ sudo pip install Genshi
$ sudo pip install trac
Reconnect to the shell, then create a TRAC project.
Add a permission for administrator login.
To integrate with httpd, install mod_wsgi and then integrate TRAC. See here for how.
Use chcon to adjust the SELinux security settings.
$ chcon -R -t httpd_sys_content_t /repo/trac
$ chcon -R -t httpd_sys_rw_content_t /repo/trac
$ chcon -R -t httpd_sys_content_t /repo/trac.egg
$ chcon -R -t httpd_sys_rw_content_t /repo/trac.egg
Of course, you also need to change the user and permissions to Apache.
See also
Favorite site
- Trac Installation Guide for 1.0
- Installing SubVersion and Trac on CentOS 6.3 2
- ZETAWIKI: Installing trac on Linux
- CentOS – Apache + SVN + Trac integration