SVN Trac on FreeBSD

CONTENTS


Lastmodified 2019-09-27 (金) 05:28:10


SVN Trac on FreeBSD 11

portinstall devel/subversion --batch

portinstall www/trac --batch

echo svnserve_enable="YES" >> /etc/rc.conf

/usr/local/etc/rc.d/svnserve start

kernel: Starting svnserve.
kernel: su: 
kernel: unknown login: svn

pw groupadd -n svn -g 90

pw useradd -n svn -u 90 -g svn -d /nonexistent -s /nonexistent

portinstall www/mod_dav_svn

echo 'LoadModule dav_svn_module libexec/apache24/mod_dav_svn.so' >> /usr/local/etc/apache24/httpd.conf

apachectl restart

/usr/local/etc/rc.d/svnserve start

mkdir -p /usr/home/svn/repos

svnadmin create /usr/home/svn/repos/X-Plane_11

  106  6:55    cd /usr/home/svn/repos/X-Plane_11
  153  11:24   chown -R www:www /usr/home/svn

trac

  160  12:16   trac-admin /usr/local/www/apache24/data/trac/sandbox initenv
  161  12:17   chown -R www:www /usr/local/www/apache24/data/trac/sandbox
  162  12:19   apachectl restart
  163  12:20   locate mod_python3
  164  12:20   portinstall www/mod_python35
  165  12:21   apachectl restart
================================================================================

The mod_python module is no longer activated in httpd.conf!
There is now a dedicated modules file in etc/apache24/modules.d

Also remember to add to your Apache configuration in the appropriate context:

PythonPath "['/path/to/foo', '/path/to/bar']"
AddHandler python-program .py
PythonHandler foobar
PythonDebug On

For more information, see http://www.modpython.org/.

================================================================================

/usr/local/etc/apache24/modules.d/270_mod_python.conf

LoadModule python_module libexec/apache24/mod_python.so ←これをアンコメントする

/usr/local/etc/apache24/Includes/trac.conf

<Location /trac>
	SetHandler mod_python
	PythonHandler trac.web.modpython_frontend
	PythonOption TracEnvParentDir /usr/local/www/apache24/data/trac
	PythonOption TracUriRoot /trac
</Location>

Total access 2451:本日 1:昨日 0

Counter: 2451, today: 1, yesterday: 0

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS