Difference between revisions of "Trac"
From Alessandro's Wiki
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
== general == | == general == | ||
http://trac.edgewall.org/wiki/0. | http://trac.edgewall.org/wiki/0.12/TracUpgrade | ||
=== sebversion === | === sebversion === | ||
Line 48: | Line 48: | ||
trac-admin <path_to_environment> permission add <user> SCREENSHOTS_VIEW | trac-admin <path_to_environment> permission add <user> SCREENSHOTS_VIEW | ||
== environment install == | |||
* install the software: ''(original documentation) [http://trac.edgewall.org/wiki/TracInstall] | |||
most of Linux distribuions have the Trac package available on their repositories of software. | |||
'''gentoo:''' | |||
emerge trac | |||
'''RedHat:''' | |||
yum install trac | |||
'''''generic''''' ''(using python installer utility)'' | |||
easy_install Trac | |||
* create the trac instance, means you'll have to do this for every "website" you're going to install | |||
trac-admin /var/lib/trac/<project> initenv | |||
* check the configuration file if you want | |||
/var/lib/trac/<project>/conf/trac.ini | |||
== upgrade == | == upgrade == | ||
Latest revision as of 19:39, 11 January 2012
general
http://trac.edgewall.org/wiki/0.12/TracUpgrade
sebversion
http://trac.edgewall.org/wiki/TracSubversion#TracandSubversion1.6
- conf/trac.ini
versioncontrol.api.repositorymanager = enabled versioncontrol.svn_authz.svnauthzoptions = enabled versioncontrol.svn_fs.subversionconnector = enabled versioncontrol.svn_prop.subversionmergepropertydiffrenderer = enabled versioncontrol.svn_prop.subversionmergepropertyrenderer = enabled versioncontrol.svn_prop.subversionpropertyrenderer = enabled
resync
trac-admin <projenv> repository resync <reponame>
trac-admin /var/lib/trac/videoteca repository resync \(default\)
elwood # trac-admin /var/lib/trac/videoteca repository list Name Type Alias Directory -------------------------------------------------------- (default) /home/xunil/subversion/videoteca
User management
easy_install https://trac-hacks.org/svn/accountmanagerplugin/trunk
[components] trac.web.auth.LoginModule = disabled acct_mgr.web_ui.LoginModule = enabled acct_mgr.web_ui.RegistrationModule = disabled
permissions
- example: set permissions for the ScreenShot plugin
trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ADMIN trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ADD trac-admin <path_to_environment> permission add <user> SCREENSHOTS_DELETE trac-admin <path_to_environment> permission add <user> SCREENSHOTS_FILTER trac-admin <path_to_environment> permission add <user> SCREENSHOTS_ORDER trac-admin <path_to_environment> permission add <user> SCREENSHOTS_VIEW
environment install
- install the software: (original documentation) [1]
most of Linux distribuions have the Trac package available on their repositories of software.
gentoo:
emerge trac
RedHat:
yum install trac
generic (using python installer utility)
easy_install Trac
- create the trac instance, means you'll have to do this for every "website" you're going to install
trac-admin /var/lib/trac/<project> initenv
- check the configuration file if you want
/var/lib/trac/<project>/conf/trac.ini
upgrade
- with easy_install
easy_install --upgrade Trac trac-admin /var/lib/trac/videoteca upgrade trac-admin /var/lib/trac/videoteca wiki upgrade trac-admin /var/lib/trac/youngrock upgrade trac-admin /var/lib/trac/youngrock wiki upgrade
- restart apache !!
/etc/init.d/apache2 restart
problems
ValueError: year is out of range trac upgrade
- /var/lib/trac/youngrock
trac-admin /var/lib/trac/youngrock wiki upgrade
sqlite3 db/trac.db "UPDATE wiki SET time = time / 1000000 WHERE time > 20000000000;"
Missing "youngest_rev" in cache metadata
- Just do a Trac#resync
TracScreenshots not loading
- errror message
File "/usr/lib64/python2.7/site-packages/TracScreenshots-0.7-py2.7.egg/tracscreenshots/core.py", line 8, in <module> from PIL import Image, ImageOps ImportError: No module named PIL
- SOLVED installing dev-python/imaging