2011. 4. 19.

cent os 에서 트랙과 apache 연동

파이선 연동 모듈
# yum install mod_python

환경 설정
# cd /etc/httpd/conf.d
# vi trac.conf

<Location /trac>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /data/trac/projects/
#PythonOption TracUriRoot /trac

SetEnv PYTHON_EGG_CACHE /data/trac/.egg-cache
</Location>

<locationMatch "/[[:alnum:]]+/login">
AuthType Basic
AuthName "trac"
AuthUserFile /data/.htpasswd
Require valid-user
</locationMatch>


# cd /usr/lib/python2.4/site-packages
# unzip Trac-0.12.2-py2.4.egg
이유 ==> http://ruk.ca/content/importerror-no-module-named-trac

# service httpd restart

댓글 없음: