[edit]

tracそのもののインストール

yum install trac
yum install python-devel

cd /usr/local/src
wget 'http://downloads.sourceforge.net/pypgsql/pyPgSQL-2.5.1.tar.gz?modtime=1149708827&big_mirror=0'
tar xzf pyPgSQL-2.5.1.tar.gz
cd pyPgSQL-2.5.1
python setup.py build
python setup.py install

wget 'http://www.egenix.com/files/python/egenix-mx-base-2.0.6.tar.gz'
tar xzf egenix-mx-base-2.0.6.tar.gz
cd egenix-mx-base-2.0.6
python setup.py install
[edit]

Subversionの設定

svnadmin create --fs-type fsfs /svnroot/projects/hogehoge

Subversionのリモートからのアクセス用アカウントの作成
useradd -u 5001 -g staff -d /svnroot/projects/hogehoge hogehoge
chown -R hogehoge:staff /svnroot/projects/hogehoge
chmod -R g+w /svnroot/projects/hogehoge
[edit]

trac用のPostgreSQL用データベースの作成

sudo -u postgres /usr/bin/createuser -P hogehoge
sudo -u postgres /usr/bin/createdb hogehoge_trac
[edit]

tracの環境ディレクトリの作成

trac-admin /var/www/projects/h/hogehoge/trac initenv
# Project Name [My Project]> Hogehoge
# Database connection string [sqlite:db/trac.db]> postgres://hogehoge:password@localhost/hogehoge_trac
# Repository type [svn]>
# Path to repository [/path/to/repos]> /svnroot/projects/hogehoge
# Templates directory [/usr/share/trac/templates]
chown -R timesclub:staff /var/www/projects/h/hogehoge/trac
chmod -R g+w /var/www/projects/h/hogehoge/trac
[edit]

tracのエントリーポイントとなるfcgiスクリプトの設定

cp /var/www/cgi-bin/trac.fcgi /var/www/projects/h/hogehoge/htdocs/trac
vi trac
/-----------------------
+ import os
+ os.environ['TRAC_ENV'] = "/var/www/projects/h/hogehoge/trac"
+ 
/-----------------------
 try:
cat > .htaccess <<EOF
<Files trac>
 SetHandler fcgid-script
</Files>
EOF
[edit]

ロゴの変更


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS

アークウェブのサービスやソリューションはこちら