- 追加された行はこの色です。
- 削除された行はこの色です。
[[trac on FreeBSD]]
CONTENTS
#contents
----
Lastmodified &lastmod;
----
FreeBSD 10.1-RELEASE-p16 Apache24
*Trac [#dd6cdfdd]
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
**Apache24 Setting [#o6ca898e]
確認 /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
&ref(Trac.PNG);
** Trac の設定 [#z4a55141]
/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 &counter(total);:本日 &counter(today);:昨日 &counter(yesterday);
#counter([total|today|yesterday]);