在CentOS 5.5上安裝Trac-0.12

來源:互聯網
上載者:User

1. untar Trac source code

2. install Babel  http://babel.edgewall.org/

    easy_install Babel==0.9.5

3. install pysqlite http://code.google.com/p/pysqlite/downloads/list

    $ tar xvfz <version>.tar.gz

    $ cd <version>

    $ python setup.py build_static install

4. Trac

    sudo python setup.py install

5. install git plugin

    easy_install http://github.com/hvr/trac-git-plugin/tarball/master

    ln -s /usr/local/bin/git /usr/bin/git

   

    GitError: GIT control files not found, maybe wrong directory?

       the git repo wasn't owned by the user that Apache/mod_python runs as.

     

6. WEB setting

    yum install libtool httpd-devel apr-devel

    download mod_fastcgi and install

  

$ mkdir -p /var/www/html/trac

$ trac-admin /var/www/html/trac initenv

$ trac-admin /var/www/html/trac/ deploy /tmp/trac

$ mv /tmp/trac/*  /var/www/html/trac/.

$ vim /var/www/html/trac/cgi-bin/trac.fcgi

 below import os add:

os.environ['TRAC_ENV_PARENT_DIR'] = "/var/www/trac/"

$ cd /etc/httpd/conf.d

$ vi trac.conf

<IfModule mod_fastcgi.c>

    AddHandler fastcgi-script .fcgi

    FastCgiConfig -initial-env TRAC_ENV_PARENT_DIR=/home/sysdata/trac/project/

</IfModule>

LoadModule fastcgi_module modules/mod_fastcgi.so

ScriptAlias /trac /var/www/html/trac/cgi-bin/trac.fcgi

# /etc/init.d/httpd restart

7. Git hook

    trac-post-receive-hook-0.12-only-master.py

   

8. Install other Trac plugins

    easy_install http://trac-hacks.org/svn/accountmanagerplugin/trunk

    easy_install -U -Z http://trac-hacks.org/svn/customfieldadminplugin/0.11

    http://trac-hacks.org/wiki/DateFieldPlugin

    http://trac-hacks.org/wiki/NavAddPlugin

    http://trac-hacks.org/wiki/AutocompleteUsersPlugin

    http://trac-hacks.org/wiki/UserManagerPlugin

   

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.