目錄
過程 1.2. TRAC - easy_install
easy_install
$ sudo apt-get install python-setuptools
Installing Trac
sudo easy_install Pygments sudo easy_install Genshi sudo easy_install Trac
ClearSilver
sudo apt-get install python-clearsilver
python svn
sudo apt-get install python-svn python-svn-dbg
create svn repos
$ svnadmin create /home/netkiller/repos
# cat /etc/httpd/conf.d/trac.conf <VirtualHost *:80> # Change this to the domain which points to your host, i.e. the domain # you set as "phabricator.base-uri". ServerName trac.repo <Location /> SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_frontend PythonOption TracEnv /gitroot/trac/default PythonOption TracUriRoot / </Location> # Replace all occurrences of /srv/trac with your trac root below # and uncomment the respective SetEnv and PythonOption directives. # <LocationMatch /cgi-bin/trac\.f?cgi> # SetEnv TRAC_ENV /srv/trac # </LocationMatch> # <IfModule mod_python.c> # <Location /cgi-bin/trac.cgi> # SetHandler mod_python # PythonHandler trac.web.modpython_frontend # #PythonOption TracEnv /srv/trac # </Location> # </IfModule> </VirtualHost>