ラベル Trac の投稿を表示しています。 すべての投稿を表示
ラベル Trac の投稿を表示しています。 すべての投稿を表示

2009年1月29日木曜日

Tracで「Permission denied」と表示されるエラー

Tracで「Permission denied」と表示されるエラーに遭遇したのですが,その解決方法をメモしておきます.

vi /etc/httpd/httpd.conf/trac.conf
----------------------------------------
<Location /trac>
  SetEnv PYTHON_EGG_CACHE /tmp # <-追加
</Location>
----------------------------------------


ちなみにエラーメッセージは以下のような感じです.

The following error occurred while trying to extract file(s) to the Python egg
cache:

[Errno 13] Permission denied: '/.python-eggs'

The Python egg cache directory is currently set to:

/.python-eggs


[1] Tracのインストールでハマる (.python-eggsのパス)
http://d.hatena.ne.jp/mahata/20080624/1214284997

2008年12月26日金曜日

TracWebAdminプラグインのインストール

TracWebAdminプラグインをインストールしたので,その方法をメモしておきます.

# su
# yum install yum install trac-webadmin
# vi /var/www/trac/dokan/conf/trac.ini
--
[components]
webadmin.* = enabled
--
# trac-admin /var/www/trac/dokan permission add admin TRAC_ADMIN
# /sbin/service httpd restart


[1] Tracの使い方 - TracWebAdminインストール -
http://ameblo.jp/itboy/entry-10036436354.html

2008年12月16日火曜日

TracGanttCalendarプラグインのインストール

TracGanttCalendarプラグイン(for Trac-0.10(trac-ja))をインストールしたので,その方法をメモしておきます.

$ wget http://pw.tech-arts.co.jp/technical/src/ganttcalendar-0.0.1.tar.gz
$ tar zxvf ganttcalendar-0.0.1.tar.gz
$ cd ganttcalendar-0.0.1
$ python setup.py bdist_egg
$ su
# chgrp apache /var/www
# chmod g+rwx /var/www
# cp dist/TracGanttCalendarPlugin-0.0.1-py2.4 /var/www/trac/dokan/plugins
# vi /var/www/trac/dokan/conf/trac.ini
--
[ticket-custom]
due_assign = text
due_assign.label = 開始日
due_assign.order = 1

due_close= text
due_close.label = 終了日
due_close.order = 2

complete= text
complete.label = 進捗率(%)
complete.order = 3
--
# /sbin/service httpd restart


注意点は以下のとおりです.
  • python-setuptools.noarch.rpmをインストールしておく必要あり.
  • /var/wwwディレクトリに.pyhton-eggsというディレクトリを作成するので,/var/wwwディレクトリにapacheが書込み権限を持っている必要あり.

[1] TracGanttCalendarプラグイン for Trac-0.10(trac-ja)
http://pw.tech-arts.co.jp/technical/2008/04/trac_tracganttcalendar_for_tra.html

2008年12月9日火曜日

Tracのインストール

Tracをインストールしました.その方法をメモしておきます.

yum install apache subversion trac mod_dav_svn mod_python mod_ssl
vi /etc/httpd/conf.d/subversion.conf
--
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so

DAV svn
SVNParentPath /var/www/svn
# Limit write permission to list of valid users.

# Require SSL connection for password protection.
SSLRequireSSL
AuthType Basic
AuthName "Member Only"
AuthBasicProvider ldap
AuthLDAPURL ldap://xx.xx.xx.xx:389/xxxx
AuthLDAPBindDN cn=Manager,xxxx
AuthLDAPBindPassword xxxxxxxx
AuthzLDAPAuthoritative off
Require valid-user


--
vi /etc/httpd/conf.d/trac.conf
--

SetHandler mod_python
PythonDebug On
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /var/www/trac
PythonOption TracUriRoot /trac


SSLRequireSSL
AuthType Basic
AuthName "Member Only"
AuthBasicProvider ldap
AuthLDAPURL ldap://xx.xx.xx.xx:389/xxxx
AuthLDAPBindDN cn=Manager,xxxx
AuthLDAPBindPassword xxxx
AuthzLDAPAuthoritative off
Require valid-user

--
mkdir /var/www/svn
chown apache:apache /var/www/svn
mkdir /var/www/trac
chown apache:apache /var/www/trac
svnadmin create /var/svn/test_project
chown -R apache:apache /var/svn/test_project
trac-admin /var/trac/test_project initenv
chown -R apache:apache /var/trac/test_project