Outils pour utilisateurs

Outils du site


informatique:issue_tracking_system:trac

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
informatique:issue_tracking_system:trac [20/04/2011 18:12] – [CentOS 5.5 + RPMForge] cyrilleinformatique:issue_tracking_system:trac [19/05/2012 00:18] (Version actuelle) – modification externe 127.0.0.1
Ligne 4: Ligne 4:
  
 ===== Installation ===== ===== Installation =====
 +
 +[[http://trac.edgewall.org/wiki/TracInstall]]
  
 ==== CentOS 5.5 + RPMForge ==== ==== CentOS 5.5 + RPMForge ====
  
-  yum install python-setuptools+Installation de Trac et mod_wsgi 
 +  * [[http://trac.edgewall.org/wiki/TracModWSGI]] 
 +  * [[http://zxmax.wordpress.com/2010/09/19/installing-trac-0-12-on-centos-5-5/]] 
 + 
 +  yum install python-setuptools python-tz
   easy_install Pygments   easy_install Pygments
   easy_install docutils   easy_install docutils
-  yum install python-tz+ 
 +  yum install httpd-devel apxs python-devel 
 +  wget http://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz 
 +  tar zxf mod_wsgi-3.3.tar.gz 
 +  cd mod_wsgi-3.3 
 +  ./configure && make && make install 
 +  ls /usr/lib/httpd/modules/ 
 +  ... mod_wsgi.so ... 
 + 
 +  easy_install trac 
 + 
 +  mkdir /var/www/trac 
 +  mkdir /var/www/trac/projects 
 +  trac-admin /var/www/trac/projects/TracTest initenv 
 +    You may now configure the environment by editing the file: 
 +      /var/www/trac/projects/TracTest/conf/trac.ini 
 +    try running the Trac standalone web server `tracd`: 
 +      tracd --port 8000 /var/www/trac/projects/TracTest 
 +  # Browse http://server:8000/TracTest 
 +  Yep ! Ça roule 
 + 
 +  # /var/www/trac/trac.wsgi 
 +<code python
 +import sys 
 + 
 +sys.stdout = sys.stderr 
 + 
 +import os 
 + 
 +os.environ['TRAC_URI_ROOT'] = '/trac' 
 +os.environ['TRAC_ENV_PARENT_DIR'] = '/var/www/trac/projects' 
 +os.environ['PYTHON_EGG_CACHE'] = '/var/www/trac/eggs' 
 + 
 +import trac.web.main 
 + 
 +application = trac.web.main.dispatch_request 
 +</code> 
 + 
 +  # /etc/httpd/conf.d/trac-wsgi.conf 
 +   
 +  LoadModule wsgi_module modules/mod_wsgi.so 
 +   
 +  WSGIScriptAlias /trac  /var/www/trac/trac.wsgi 
 +   
 +  <Directory /var/www/trac> 
 +    WSGIApplicationGroup %{GLOBAL} 
 +    Order deny,allow 
 +    Allow from all 
 +  </Directory> 
 +   
 +  service httpd restart 
 +  # Browse http://server/trac 
 +  Yep ! Ça roule 
 + 
 +=== essais précédent avec mod_python === 
 + 
 +**mod_python n'est pas reccomandé, utiliser mod_wsgi** 
 +  * [[http://trac.edgewall.org/wiki/TracModPython]] 
   yum install babel trac   yum install babel trac
  
   browse http://server/trac   browse http://server/trac
   500 Internal Server Error   500 Internal Server Error
 +  
 +  # /etc/httpd/conf.d/trac.conf
 +  #PythonOption TracEnvParentDir /var/trac
 +  PythonOption TracEnvParentDir /var/www/trac
 +
 +  browse http://server/trac/Proj01
 +  Traceback (most recent call last):
 +  ...
 +  OSError: [Errno 2] No such file or directory: '/usr/lib/python2.4/site-packages/trac/locale'
  
informatique/issue_tracking_system/trac.1303315938.txt.gz · Dernière modification : 19/05/2012 00:15 (modification externe)

Sauf mention contraire, le contenu de ce wiki est placé sous les termes de la licence suivante : CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki