Build results: No deployment needed (installation is performed directly to the box).
Dependencies: subversion, python, apache & mod_python, SQLite
Info sources: [Trac installation guide] [Subversion-Trac howto] [Trac & ModPython]
setuptools
box# cd /mnt/C box# wget http://peak.telecommunity.com/dist/ez_setup.py box# python ez_setup.py
Genshi
box# python /mnt/C/sys/bin/easy_install --prefix=/mnt/C/sys Genshi
Trac
box# python /mnt/C/sys/bin/easy_install --prefix=/mnt/C/sys TracPrepare project
box# mkdir /mnt/C/sys/var/trac box# mkdir /mnt/C/sys/var/trac/<project> box# trac-admin /mnt/C/sys/var/trac/<project> initenv... and fill in all project info (point it to project's subversion erpository e.g. /mnt/C/sys/var/svn/<project> etc.)
Test standalone trac http daemon
box# tracd --port 8000 /mnt/C/sys/var/trac/<project> box# lynx http://localhost:8000Administration
Edit apache configuration
box# nano /mnt/C/sys/apache2/conf/httpd.confAdd following:
<Location /projects/<project>> SetHandler mod_python PythonInterpreter main_interpreter PythonHandler trac.web.modpython_frontend PythonOption TracEnv /mnt/C/sys/var/trac/<project> PythonOption TracUriRoot /projects/<project> </Location> <Location /projects/<project>/login> AuthType Basic AuthName "<project>" AuthUserFile /mnt/C/sys/var/trac/<project>/.htpasswd Require valid-user </Location>Create password file
box# htpasswd -c /mnt/C/sys/var/trac/<project>/.htpasswd <user> box# trac-admin /mnt/C/sys/var/trac/<project> permission add admin TRAC_ADMINInitialize web administration
box# nano /mnt/C/sys/var/trac/<project>/conf/trac.iniAdd following:
[components] webadmin.* = enabled
No comments:
Post a Comment