CONTENTS
Lastmodified 2015-08-07 (金) 12:58:53
FreeBSD 10.1-RELEASE-p16 Apache24
portinstall www/trac
取り敢えずsvnとは連携なしで、動作確認。sandboxをつくる。
root@g7:~ # mkdir -p /usr/local/www/trac/sandbox root@g7:~ # trac-admin /usr/local/www/trac/sandbox initenv Creating a new Trac environment at /usr/local/www/trac/sandbox Trac will first ask a few questions about your environment in order to initialize and prepare the project database. Please enter the name of your project. This name will be used in page titles and descriptions. Project Name [My Project]> sandbox Please specify the connection string for the database to use. By default, a local SQLite database is created in the environment directory. It is also possible to use an already existing PostgreSQL database (check the Trac documentation for the exact connection string syntax). Database connection string [sqlite:db/trac.db]> Creating and Initializing Project Installing default wiki pages CamelCase imported from /usr/local/lib/python2.7/site-packages/trac/wiki/default-pages/CamelCase InterMapTxt imported from /usr/local/lib/python2.7/site-packages/trac/wiki/default-pages/InterMapTxt InterTrac imported from /usr/local/lib/python2.7/site-packages/trac/wiki/default-pages/InterTrac : : : WikiRestructuredText imported from /usr/local/lib/python2.7/site-packages/trac/wiki/default-pages/WikiRestructuredText WikiRestructuredTextLinks imported from /usr/local/lib/python2.7/site-packages/trac/wiki/default-pages/WikiRestructuredTextLinks WikiStart imported from /usr/local/lib/python2.7/site-packages/trac/wiki/default-pages/WikiStart --------------------------------------------------------------------- Project environment for 'sandbox' created. You may now configure the environment by editing the file: /usr/local/www/trac/sandbox/conf/trac.ini If you'd like to take this new project environment for a test drive, try running the Trac standalone web server `tracd`: tracd --port 8000 /usr/local/www/trac/sandbox Then point your browser to http://localhost:8000/sandbox. There you can also browse the documentation for your installed version of Trac, including information on further setup (such as deploying Trac to a real web server). The latest documentation can also always be found on the project website: http://trac.edgewall.org/ Congratulations! root@g7:~ #
root@g7:~ # chown -R www:www /usr/local/www/trac/sandbox
確認 /usr/local/etc/apache24/httpd.conf
LoadModule python_module libexec/apache24/mod_python.so
見えるように設定。
# vi /usr/local/etc/apache24/Includes/trac.conf
<Location /trac> SetHandler mod_python PythonHandler trac.web.modpython_frontend PythonOption TracEnvParentDir /usr/local/www/trac PythonOption TracUriRoot /trac </Location>
http://g7.kuji-clinic.net/trac/sandbox
/usr/local/www/trac/sandbox/conf/trac.ini
[Trac] #repository_dir = repository_dir = /usr/home/svn/repos/sandbox #repository_sync_per_request = (default) repository_sync_per_request = /usr/home/svn/repos/sandbox
root@g7:~ # /usr/local/etc/rc.d/svnserve start Starting svnserve. su: unknown login: svn /usr/local/etc/rc.d/svnserve: WARNING: failed to start svnserve root@g7:~ # root@g7:~ # root@g7:~ # pw groupadd -n svn -g 90 root@g7:~ # pw useradd -n svn -u 90 -g svn -d /nonexistent -s /nonexistent root@g7:~ # root@g7:~ # root@g7:~ # /usr/local/etc/rc.d/svnserve start Starting svnserve. root@g7:~ #
Total access 3154:本日 1:昨日 0