忍び歩く男 - SLYWALKER

大阪のこっそりPHPer

CentOS Trac インストールメモ

Apache2 Install

# yum -y install httpd
# /etc/rc.d/init.d/httpd start
# chkconfig httpd on

Subversion Install

# yum -y install subversion mod_dav_svn
# mkdir /var/www/svn
# svnadmin create /var/www/svn/portal
# chown -R apache.apache /var/www/svn
# htpasswd -c /var/www/.htpasswd hoge
# vi /etc/httpd/conf.d/subversion.conf

<Location /repos>
    DAV svn
    SVNParentPath /var/www/svn

    # Limit write permission to list of valid users.
    <LimitExcept GET PROPFIND OPTIONS REPORT>
        # Require SSL connection for password protection.
        # SSLRequireSSL

        AuthType Basic
        AuthName "Authorization Realm"
        AuthUserFile /var/www/.htpasswd
        Require valid-user
    </LimitExcept>
</Location>

# /etc/rc.d/init.d/httpd restart

Trac Install

# yum -y install python python-setuptools mod_python
# wget http://www.i-act.co.jp/project/products/downloads/Trac-0.11.1.ja1.zip
# unzip Trac-0.11.1.ja1.zip
# cd Trac-0.11.1.ja1
# python setup.py install
# mkdir /var/www/trac
# chown -R apache.apache /var/www/trac
# vi /etc/httpd/conf.d/trac.conf

<Location /trac>
   SetHandler mod_python
   PythonHandler trac.web.modpython_frontend
   PythonOption TracEnvParentDir /var/www/trac/
   #PythonOption TracUriRoot /trac

   SetEnv PYTHON_EGG_CACHE /var/www/.egg-cache
</Location>

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

# /etc/rc.d/init.d/httpd restart