Trac
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[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/s...
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...
By default, a local SQLite database is created in the en...
directory. It is also possible to use an already existing
PostgreSQL database (check the Trac documentation for th...
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-...
InterMapTxt imported from /usr/local/lib/python2.7/sit...
InterTrac imported from /usr/local/lib/python2.7/site-...
:
:
:
WikiRestructuredText imported from /usr/local/lib/pytho...
WikiRestructuredTextLinks imported from /usr/local/lib/...
WikiStart imported from /usr/local/lib/python2.7/site-p...
--------------------------------------------------------...
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...
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 ins...
version of Trac, including information on further setup ...
deploying Trac to a real web server).
The latest documentation can also always be found on the...
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_pytho...
見えるように設定。
# 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
*SVN との接続 [#h653fd31]
**SVNServeが起動しない [#zd3b53e7]
# /usr/local/etc/rc.d/svnserve start
Starting svnserve.
su: unknown login: svn
/usr/local/etc/rc.d/svnserve: WARNING: failed to start s...
#
#
# pw groupadd -n svn -g 90
# pw useradd -n svn -u 90 -g svn -d /nonexistent -s /non...
#
#
# /usr/local/etc/rc.d/svnserve start
Starting svnserve.
#
**SVN と Tracの同期 [#pf383bbb]
これ、嵌まりました。 まず、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
と元へ戻し、コマンドラインから、repository resync すると、
# trac-admin /usr/local/www/trac/sandbox repository resy...
TracError: Unsupported version control system "svn": Can...
maybe the corresponding plugin was not enabled?
といわれる。また、Tracのウエブ表示でも、
TracError: サポートしていないバージョン管理システム "svn...
対応するプラグインは、有効になっていますか?
とエラー表示がでる。
解決策は、以下の通り。
【参考URL】http://wiki.ducca.org/wiki/Trac1.0%E3%81%A8Sub...
trac.ini
[components] 項目を追加し、
tracopt.versioncontrol.svn.svn_fs.subversionconnector = ...
を追記する。
これで、SVNのリポジトリとTracが同期しました。
*Apache24 でアクセス制限 [#c83cece8]
<Location /trac>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /usr/local/www/trac
PythonOption TracUriRoot /trac
</Location>
<Location /trac>
#Require all granted
Require host .smb.net
Require ip 192.168.1.1
Require host .some.known.net
Require host .aaaabbbb.info
</Location>
* 追加 [#i41576db]
# mkdir -p /usr/local/www/trac/RS_Base
# trac-admin /usr/local/www/trac/RS_Base initenv
# chown -R www:www /usr/local/www/trac/
/usr/local/www/trac/RS_Base/conf/trac.ini
[trac]
repository_dir = /usr/home/svn/repos/RS_Base ...
以下の行を書き加える
[components]
tracopt.versioncontrol.svn.svn_fs.subversionconnector = ...
あとは、ブラウザからアクセスする。
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
終了行:
[[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/s...
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...
By default, a local SQLite database is created in the en...
directory. It is also possible to use an already existing
PostgreSQL database (check the Trac documentation for th...
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-...
InterMapTxt imported from /usr/local/lib/python2.7/sit...
InterTrac imported from /usr/local/lib/python2.7/site-...
:
:
:
WikiRestructuredText imported from /usr/local/lib/pytho...
WikiRestructuredTextLinks imported from /usr/local/lib/...
WikiStart imported from /usr/local/lib/python2.7/site-p...
--------------------------------------------------------...
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...
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 ins...
version of Trac, including information on further setup ...
deploying Trac to a real web server).
The latest documentation can also always be found on the...
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_pytho...
見えるように設定。
# 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
*SVN との接続 [#h653fd31]
**SVNServeが起動しない [#zd3b53e7]
# /usr/local/etc/rc.d/svnserve start
Starting svnserve.
su: unknown login: svn
/usr/local/etc/rc.d/svnserve: WARNING: failed to start s...
#
#
# pw groupadd -n svn -g 90
# pw useradd -n svn -u 90 -g svn -d /nonexistent -s /non...
#
#
# /usr/local/etc/rc.d/svnserve start
Starting svnserve.
#
**SVN と Tracの同期 [#pf383bbb]
これ、嵌まりました。 まず、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
と元へ戻し、コマンドラインから、repository resync すると、
# trac-admin /usr/local/www/trac/sandbox repository resy...
TracError: Unsupported version control system "svn": Can...
maybe the corresponding plugin was not enabled?
といわれる。また、Tracのウエブ表示でも、
TracError: サポートしていないバージョン管理システム "svn...
対応するプラグインは、有効になっていますか?
とエラー表示がでる。
解決策は、以下の通り。
【参考URL】http://wiki.ducca.org/wiki/Trac1.0%E3%81%A8Sub...
trac.ini
[components] 項目を追加し、
tracopt.versioncontrol.svn.svn_fs.subversionconnector = ...
を追記する。
これで、SVNのリポジトリとTracが同期しました。
*Apache24 でアクセス制限 [#c83cece8]
<Location /trac>
SetHandler mod_python
PythonHandler trac.web.modpython_frontend
PythonOption TracEnvParentDir /usr/local/www/trac
PythonOption TracUriRoot /trac
</Location>
<Location /trac>
#Require all granted
Require host .smb.net
Require ip 192.168.1.1
Require host .some.known.net
Require host .aaaabbbb.info
</Location>
* 追加 [#i41576db]
# mkdir -p /usr/local/www/trac/RS_Base
# trac-admin /usr/local/www/trac/RS_Base initenv
# chown -R www:www /usr/local/www/trac/
/usr/local/www/trac/RS_Base/conf/trac.ini
[trac]
repository_dir = /usr/home/svn/repos/RS_Base ...
以下の行を書き加える
[components]
tracopt.versioncontrol.svn.svn_fs.subversionconnector = ...
あとは、ブラウザからアクセスする。
----
Total access &counter(total);:本日 &counter(today);:昨...
#counter([total|today|yesterday]);
ページ名: