Header

  1. View current page

    한울프로젝트

Profile_img_60x60_06
3 2

Trac 프로젝트 설정

개  요

이슈 트래킹 툴인 Trac을 설치 한 후, Trac 페이지 설정 및 운용에 있어서 생기는 문제점들에 대한 가이드를 정리합니다.

대부분 문제가 발생(제대로 페이지가 나타나지 않음)할 때,  해당 웹페이자나 /var/log/httpd/error_log 파일에서 문제에 해당하는 메세지를 확인 할 수 있습니다.

 

문제점 및 해결방안

  1. 권한문제 ( VERSION 파일)
    [error] [client 192.168.41.1] IOError: [Errno 13] Permission denied: '/home/trac/module_dev/VERSION'   

     1.1 해결방안
    http daemon to share home directories you need to turn on the httpd_enable_homedirs boolean:

    [root@localhost trac]# setsebool -P httpd_enable_homedirs=1
    or
    [root@localhost trac]# chcon -R -t httpd_sys_content_t ./trac/

     

  2.  권한 문제 ( DB )
    (The user apache requires read _and_ write permission to the database file /var/trac/module_dev/db/trac.db and the directory it is located in.)

     2.1 해결방안
     2.1.1 chcon -t httpd_sys_script_rw_t trac.db
     2.1.2 chmod 777 ./db
           chmod 666 ./db/trac.db
     2.1.3 chown -R apache:apache ./trac
     2.1.4 httpd_restrat

     

  3. trac_httpd_conf 설정

     <LocationMatch /cgi-bin/trac\.f?cgi>
        #SetEnv TRAC_ENV /srv/trac
        SetEnv TRAC_ENV /home/trac #--> 이렇게 수정한다.
    </LocationMatch>
    <IfModule mod_python.c>
    <Location /cgi-bin/trac.cgi>
        SetHandler mod_python
        PythonHandler trac.web.modpython_frontend
        #PythonOption TracEnv /srv/trac
        PythonOption TracEnv /home/trac #--> 이렇게 수정한다.
    </Location>
    </IfModule>
    <Location /trac/mng>
       SetHandler mod_python
       PythonInterpreter main_interpreter
       PythonHandler trac.web.modpython_frontend
       PythonOption TracEnv /home/trac/mng
       PythonOption TracUriRoot /trac/mng
    </Location>


    #로그인 설정
    <Location "/trac/mng/login">
      AuthType Basic
      AuthName "mng"
      #AuthUserFile /var/trac/myproject/.htpasswd
      AuthUserFile /home/trac/user.pwd
      Require valid-user
    </Location>

 

 

 

 

 

 

참고 사이트

History

Last edited on 03/19/2009 10:51 by moreNice

Comments (0)

You must log in to leave a comment. Please sign in.