« 【解決】Retrospectiva 2.0.0 をWindowsにインストール | トップページ | Mac OS X (10.6.5 Snow Leopard)に BootCamp 3.2 で Windows7(64bit) を入れる »

2010年10月10日 (日)

Review Board 1.5 をWindowsにインストール (LightTPDでは動かずApache+mod_pythonで動いた)

かつてReview Board 1.0をWindowにインストールしたが、エラーになる画面があり断念。
また、Rietveldとかも試したが、ローカルで動かしてもGoogleアカウントを要求された瞬間あきらめ(社内ではNG)。

そうこうしているうちに、修正を先送りしたレビュー結果があちこちに散乱。
すっきりさっぱりpre-commit reviewをとりいれて楽ちんしたいなぁと思うわけで、Review Board 1.5が2010/09/30にでたのでWindowsに入れてみる。

まず、
DocumentationのリンクからVersion 1.5Administration GuideInstalling on Windows

databaseはsqlite3。web serverはlighttpdにしてみよう。他のサーバよりも小さいメモリすみ、ロードに問題がある場合はパーフェクトな解決策、らしい。


sqlite3からsqlite3.dllゲットして環境変数PATH通っているところおいて、lighttpdをインストール。

うーん。lighttpdはバグがたくさんあるっぽく、Windowsはサポート外とのこと。はまりそうと躊躇してみたが、We have nothing to hideとのことで、また、使っている人もかなり多そうなので、やっぱlighttpd。

Windows版バイナリは、
http://en.wlmp-project.net/downloads.php
にあるようで、LightTPD for Windows - With OpenSSL supportのSETUP WIZARD版をゲット。最新の1.4.28。

インストール後に、TestMode.batを実行。
http://localhost/
でページ表示されてOK

fastcgiの設定は後回しで
Pythonゲットしてインストール
http://www.python.org/download/releases/2.5.4/
2.5.5が最新だったが、ソースのみなので2.5.4。

次にPython Setuptools Installerをゲットしてインストール
http://pypi.python.org/pypi/setuptools#files

;C:\Python25;C:\Python25\Scripts
を環境変数PATHに追加

GNU patch.exeをゲットしてPATHの通った「C:\Python25」にとりあえずコピー
http://sourceforge.net/projects/gnuwin32/files/patch/
現時点で最新は 2.5.9-7

http://code.jellycan.com/memcached/

win32 binary: memcached-1.2.6-win32-bin.zip
をゲットして
C:\memcached
にコピー

memcached.exeのプロパティーから「互換性」タブで
管理者としてこのプログラムを実行する にチェック

コマンドプロンプトで
cd C:\memcached
に移動して実行


C:\memcached>memcached.exe -d install

C:\memcached>

コントロールパネルからWindowsのサービスを立ち上げて
memcached Server
を起動する

コマンドプロンプト上で
easy_install python-memcached
を実行。


>easy_install python-memcached
Searching for python-memcached
Reading http://pypi.python.org/simple/python-memcached/
Reading http://www.tummy.com/Community/software/python-memcached/
Reading ftp://ftp.tummy.com/pub/python-memcached/
Best match: python-memcached 1.45
Downloading ftp://ftp.tummy.com/pub/python-memcached/old-releases/python-memcach
ed-1.45.tar.gz
Processing python-memcached-1.45.tar.gz
Running python-memcached-1.45\setup.py -q bdist_egg --dist-dir c:\users\jimmy\appdat
a\local\temp\easy_install-jaueal\python-memcached-1.45\egg-dist-tmp-a7yeih
zip_safe flag not set; analyzing archive contents...
Adding python-memcached 1.45 to easy-install.pth file

Installed c:\python25\lib\site-packages\python_memcached-1.45-py2.5.egg
Processing dependencies for python-memcached
Finished processing dependencies for python-memcached

Python Imaging Library (PIL)
でPIL-1.1.7.win32-py2.5.exeをゲット&インストール

PyCrypto Win32 downloads page
でpycrypto-2.1.0.win32-py2.5.zipをゲット&解凍したpycrypto-2.1.0.win32-py2.5.exeをダブルクリックしてインストール。
ちなみにここでインストールしないとサイトの作成でrb-site installするときにこんなエラー


c:\>rb-site install c:\reviewboard
Traceback (most recent call last):
File "C:\Python25\Scripts\rb-site-script.py", line 5, in <module>
from pkg_resources import load_entry_point
File "C:\Python25\Lib\site-packages\pkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "C:\Python25\Lib\site-packages\pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "C:\Python25\Lib\site-packages\pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: pycrypto>=1.9
c:\>rb-site install c:\reviewboard

Review Boardのインストールはeasy_installで可能なようで
easy_install ReviewBoard
を実行


>easy_install ReviewBoard
Searching for ReviewBoard
Reading http://pypi.python.org/simple/ReviewBoard/
Reading http://www.reviewboard.org/
Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.5/
Reading http://www.review-board.org/
Reading http://downloads.review-board.org/releases/ReviewBoard/1.0/
Reading http://downloads.review-board.org/releases/
Best match: ReviewBoard 1.5
Downloading http://downloads.reviewboard.org/releases/ReviewBoard/1.5/ReviewBoar
d-1.5-py2.5.egg
Processing ReviewBoard-1.5-py2.5.egg
creating c:\python25\lib\site-packages\ReviewBoard-1.5-py2.5.egg
Extracting ReviewBoard-1.5-py2.5.egg to c:\python25\lib\site-packages
Adding ReviewBoard 1.5 to easy-install.pth file
Installing rb-site-script.py script to C:\Python25\Scripts
Installing rb-site.exe script to C:\Python25\Scripts
Installing rb-site.exe.manifest script to C:\Python25\Scripts

Installed c:\python25\lib\site-packages\reviewboard-1.5-py2.5.egg
Reading http://downloads.reviewboard.org/mirror/
Processing dependencies for ReviewBoard
Searching for recaptcha-client
Reading http://pypi.python.org/simple/recaptcha_client/
Reading http://recaptcha.net
Reading http://recaptcha.net/
Best match: recaptcha-client 1.0.5
Downloading http://pypi.python.org/packages/source/r/recaptcha-client/recaptcha-
client-1.0.5.tar.gz#md5=f810750fb0be4e1d08b2253e22cbc5d7
Processing recaptcha-client-1.0.5.tar.gz
Running recaptcha-client-1.0.5\setup.py -q bdist_egg --dist-dir c:\users\jimmy\appda
ta\local\temp\easy_install-z4ryjd\recaptcha-client-1.0.5\egg-dist-tmp-p85dpt
zip_safe flag not set; analyzing archive contents...
Adding recaptcha-client 1.0.5 to easy-install.pth file

Installed c:\python25\lib\site-packages\recaptcha_client-1.0.5-py2.5.egg
Searching for pytz
Reading http://pypi.python.org/simple/pytz/
Reading http://pytz.sourceforge.net
Reading http://www.stuartbishop.net/Software/pytz
Reading http://sourceforge.net/projects/pytz/
Reading http://sourceforge.net/project/showfiles.php?group_id=79122
Best match: pytz 2010l
Downloading http://pypi.python.org/packages/2.5/p/pytz/pytz-2010l-py2.5.egg#md5=
dae876c54132f345951f9cfef5ead401
Processing pytz-2010l-py2.5.egg
Moving pytz-2010l-py2.5.egg to c:\python25\lib\site-packages
Adding pytz 2010l to easy-install.pth file

Installed c:\python25\lib\site-packages\pytz-2010l-py2.5.egg
Searching for python-dateutil
Reading http://pypi.python.org/simple/python-dateutil/
Reading http://labix.org/python-dateutil
Best match: python-dateutil 1.5
Downloading http://labix.org/download/python-dateutil/python-dateutil-1.5.tar.gz

Processing python-dateutil-1.5.tar.gz
Running python-dateutil-1.5\setup.py -q bdist_egg --dist-dir c:\users\jimmy\appdata\
local\temp\easy_install-2sl9uh\python-dateutil-1.5\egg-dist-tmp-lo72rk
Adding python-dateutil 1.5 to easy-install.pth file

Installed c:\python25\lib\site-packages\python_dateutil-1.5-py2.5.egg
Searching for paramiko
Reading http://pypi.python.org/simple/paramiko/
Reading http://www.lag.net/~robey/paramiko/
Reading http://www.lag.net/paramiko/
Best match: paramiko 1.7.6
Downloading http://www.lag.net/paramiko/download/paramiko-1.7.6.zip
Processing paramiko-1.7.6.zip
Running paramiko-1.7.6\setup.py -q bdist_egg --dist-dir c:\users\jimmy\appdata\local
\temp\easy_install-syh7xd\paramiko-1.7.6\egg-dist-tmp-69qq18
warning: no files found matching 'user_rsa_key' under directory 'demos'
warning: no files found matching 'user_rsa_key.pub' under directory 'demos'
zip_safe flag not set; analyzing archive contents...
Adding paramiko 1.7.6 to easy-install.pth file

Installed c:\python25\lib\site-packages\paramiko-1.7.6-py2.5.egg
Searching for flup
Reading http://pypi.python.org/simple/flup/
Reading http://www.saddi.com/software/flup/
Best match: flup 1.0.3.dev-20100525
Downloading http://pypi.python.org/packages/2.5/f/flup/flup-1.0.3.dev_20100525-p
y2.5.egg#md5=6f75bc4f9ac6487b247bdcafa5da0c41
Processing flup-1.0.3.dev_20100525-py2.5.egg
Moving flup-1.0.3.dev_20100525-py2.5.egg to c:\python25\lib\site-packages
Adding flup 1.0.3.dev-20100525 to easy-install.pth file

Installed c:\python25\lib\site-packages\flup-1.0.3.dev_20100525-py2.5.egg
Searching for Pygments>=1.1.1
Reading http://pypi.python.org/simple/Pygments/
Reading http://pygments.org/
Reading http://pygments.pocoo.org/
Best match: Pygments 1.3.1
Downloading http://pypi.python.org/packages/2.5/P/Pygments/Pygments-1.3.1-py2.5.
egg#md5=16e57c826292d420151ea95498f0d1f4
Processing Pygments-1.3.1-py2.5.egg
creating c:\python25\lib\site-packages\Pygments-1.3.1-py2.5.egg
Extracting Pygments-1.3.1-py2.5.egg to c:\python25\lib\site-packages
Adding Pygments 1.3.1 to easy-install.pth file
Installing pygmentize-script.py script to C:\Python25\Scripts
Installing pygmentize.exe script to C:\Python25\Scripts
Installing pygmentize.exe.manifest script to C:\Python25\Scripts

Installed c:\python25\lib\site-packages\pygments-1.3.1-py2.5.egg
Searching for Djblets>=0.6.4
Reading http://pypi.python.org/simple/Djblets/
Reading http://www.review-board.org/wiki/Djblets
Reading http://downloads.review-board.org/releases/Djblets/0.5/
Reading http://downloads.review-board.org/releases/Djblets/0.6/
Best match: Djblets 0.6.4
Downloading http://downloads.reviewboard.org/releases/Djblets/0.6/Djblets-0.6.4-
py2.5.egg
Processing Djblets-0.6.4-py2.5.egg
creating c:\python25\lib\site-packages\Djblets-0.6.4-py2.5.egg
Extracting Djblets-0.6.4-py2.5.egg to c:\python25\lib\site-packages
Adding Djblets 0.6.4 to easy-install.pth file

Installed c:\python25\lib\site-packages\djblets-0.6.4-py2.5.egg
Reading http://downloads.review-board.org/mirror/
Searching for django-evolution>=0.5
Reading http://pypi.python.org/simple/django_evolution/
Reading http://code.google.com/p/django-evolution/
Best match: django-evolution 0.5
Downloading http://pypi.python.org/packages/2.5/d/django_evolution/django_evolut
ion-0.5-py2.5.egg#md5=ba7857edbce11f5047182b6342840832
Processing django_evolution-0.5-py2.5.egg
creating c:\python25\lib\site-packages\django_evolution-0.5-py2.5.egg
Extracting django_evolution-0.5-py2.5.egg to c:\python25\lib\site-packages
Adding django-evolution 0.5 to easy-install.pth file

Installed c:\python25\lib\site-packages\django_evolution-0.5-py2.5.egg
Searching for Django>=1.1.1
Reading http://pypi.python.org/simple/Django/
Reading http://www.djangoproject.com/
Best match: Django 1.2.3
Downloading http://media.djangoproject.com/releases/1.2/Django-1.2.3.tar.gz
Processing Django-1.2.3.tar.gz
Running Django-1.2.3\setup.py -q bdist_egg --dist-dir c:\users\jimmy\appdata\local\t
emp\easy_install-mupv6u\Django-1.2.3\egg-dist-tmp-oxbw-w
warning: no files found matching 'django\dispatch\LICENSE.txt'
warning: no files found matching '*' under directory 'examples'
zip_safe flag not set; analyzing archive contents...
django.conf.__init__: module references __file__
django.conf.project_template.manage: module references __file__
django.contrib.admindocs.views: module references __file__
django.contrib.auth.tests.views: module references __file__
django.contrib.flatpages.tests.csrf: module references __file__
django.contrib.flatpages.tests.middleware: module references __file__
django.contrib.flatpages.tests.views: module references __file__
django.contrib.gis.gdal.tests.test_ds: module references __file__
django.contrib.gis.tests.geo3d.tests: module references __file__
django.contrib.gis.tests.geogapp.tests: module references __file__
django.contrib.gis.tests.layermap.tests: module references __file__
django.core.management.base: module references __path__
django.core.management.sql: module references __file__
django.core.management.__init__: module references __file__
django.core.management.__init__: module references __path__
django.core.management.commands.loaddata: module references __file__
django.core.management.commands.loaddata: module references __path__
django.core.management.commands.makemessages: module references __file__
django.core.servers.basehttp: module references __path__
django.db.utils: module references __file__
django.db.models.loading: module references __file__
django.template.loaders.app_directories: module references __file__
django.test.simple: module references __file__
django.test._doctest: module references __file__
django.test._doctest: module MAY be using inspect.getsourcefile
django.utils.autoreload: module references __file__
django.utils.module_loading: module references __path__
django.utils.version: module references __path__
django.utils.translation.trans_real: module references __file__
django.views.i18n: module references __file__
Adding django 1.2.3 to easy-install.pth file
Installing django-admin.py script to C:\Python25\Scripts

Installed c:\python25\lib\site-packages\django-1.2.3-py2.5.egg
Searching for pycrypto>=1.9
Reading http://pypi.python.org/simple/pycrypto/
Reading http://pycrypto.sourceforge.net
Reading http://www.pycrypto.org/
Reading http://www.amk.ca/python/code/crypto
Best match: pycrypto 2.3
Downloading http://www.pycrypto.org/files/pycrypto-2.3.tar.gz
Processing pycrypto-2.3.tar.gz
Running pycrypto-2.3\setup.py -q bdist_egg --dist-dir c:\users\jimmy\appdata\local\t
emp\easy_install-x-6lvc\pycrypto-2.3\egg-dist-tmp-qhhzo8
error: Setup script exited with error: Python was built with Visual Studio 2003;

extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.

インストールはこれでおしまい。正しくインストールされているかはたしかめてないけど。

次はサイトの作成で
Creating Sites

C:\reviewboard
ディレクトリがないことを確認して

rb-site install C:\reviewboard



c:\>rb-site install c:\reviewboard


* Welcome to the Review Board site installation wizard

This will prepare a Review Board site installation in:

c:\reviewboard

We need to know a few things before we can prepare your site for
installation. This will only take a few minutes.


* Make sure you have the modules you need

Depending on your installation, you may need certain Python
modules and servers that are missing.

If you need support for any of the following, you will need to
install the necessary modules and restart the install.

Databases (optional):
* MySQL (MySQLdb)
* PostgreSQL (psycopg2)


* What's the host name for this site?

This should be the fully-qualified host name without the http://,
port or path.

Domain Name: localhost


* What URL path points to Review Board?

Typically, Review Board exists at the root of a URL. For example,
http://reviews.example.com/. In this case, you would specify "/".

However, if you want to listen to, say,
http://example.com/reviews/, you can specify "/reviews/".

Note that this is the path relative to the domain and should not
include the domain name.

The default is /

Root Path [/]:


* What URL will point to the media files?

While most installations distribute media files on the same server
as the rest of Review Board, some custom installs may instead have
a separate server for this purpose.

The default is media/

Media URL [media/]:


* What database type will you be using?

You can type either the name or the number from the list below.

(1) sqlite3

Database Type: 1


* Determining database file path

The sqlite database file will be stored in
c:\reviewboard\data\reviewboard.db

If you are migrating from an existing installation, you can move
your existing database there, or edit settings_local.py to point
to your old location.


* What cache mechanism should be used?

memcached is strongly recommended. Use it unless you have a good
reason not to.

You can type either the name or the number from the list below.

(1) memcached
(2) file

Cache Type: 1


* What memcached connection string should be used?

This is generally in the format of memcached://hostname:port/

The default is memcached://localhost:11211/

Memcache Server [memcached://localhost:11211/]:


* What web server will you be using?

You can type either the name or the number from the list below.

(1) apache
(2) lighttpd

Web Server: 2


* Create an administrator account

To configure Review Board, you'll need an administrator account.
It is advised to have one administrator and then use that account
to grant administrator permissions to your personal user account.

If you plan to use NIS or LDAP, use an account name other than
your NIS/LDAP account so as to prevent conflicts.

The default is admin

Username [admin]:

Password:

E-Mail Address: my@mail.address


* Installing the site...
Building site directories ... OK
Building site configuration files ... OK
Creating database ... Creating table django_admin_log
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_site
Creating table django_session
Creating table siteconfig_siteconfiguration
Creating table accounts_reviewrequestvisit
Creating table accounts_profile_starred_groups
Creating table accounts_profile_starred_review_requests
Creating table accounts_profile
Creating table changedescs_changedescription
Creating table diffviewer_filediff
Creating table diffviewer_diffset
Creating table diffviewer_diffsethistory
Creating table reviews_group_users
Creating table reviews_group
Creating table reviews_defaultreviewer_repository
Creating table reviews_defaultreviewer_people
Creating table reviews_defaultreviewer_groups
Creating table reviews_defaultreviewer
Creating table reviews_screenshot
Creating table reviews_reviewrequest_changedescs
Creating table reviews_reviewrequest_target_people
Creating table reviews_reviewrequest_inactive_screenshots
Creating table reviews_reviewrequest_screenshots
Creating table reviews_reviewrequest_target_groups
Creating table reviews_reviewrequest
Creating table reviews_reviewrequestdraft_target_people
Creating table reviews_reviewrequestdraft_inactive_screenshots
Creating table reviews_reviewrequestdraft_screenshots
Creating table reviews_reviewrequestdraft_target_groups
Creating table reviews_reviewrequestdraft
Creating table reviews_comment
Creating table reviews_screenshotcomment
Creating table reviews_review_comments
Creating table reviews_review_screenshot_comments
Creating table reviews_review
Creating table scmtools_tool
Creating table scmtools_repository
Creating table django_project_version
Creating table django_evolution
C:\Python25\lib\site-packages\Crypto\Util\randpool.py:40: RandomPool_Deprecation
Warning: This application uses RandomPool, which is BROKEN in older releases. S
ee http://www.pycrypto.org/randpool-broken
RandomPool_DeprecationWarning)
Registering new SCM Tool Subversion (reviewboard.scmtools.svn.SVNTool) in databa
se
Registering new SCM Tool Git (reviewboard.scmtools.git.GitTool) in database
Registering new SCM Tool Bazaar (reviewboard.scmtools.bzr.BZRTool) in database
Registering new SCM Tool CVS (reviewboard.scmtools.cvs.CVSTool) in database
Registering new SCM Tool Perforce (reviewboard.scmtools.perforce.PerforceTool) i
n database
Registering new SCM Tool Clear Case (reviewboard.scmtools.clearcase.ClearCaseToo
l) in database
Registering new SCM Tool Mercurial (reviewboard.scmtools.hg.HgTool) in database
Installing baseline version
Evolutions in diffviewer baseline: add_parent_diffs, filediff_filenames_1024_cha
rs, diffset_basedir, filediff_status
Evolutions in reviews baseline: change_descriptions, last_review_timestamp, ship
it_count, default_reviewer_repositories, null_repository
Evolutions in scmtools baseline: bugzilla_url_charfield, repository_raw_file_url
, repository_visible, repository_path_length_255
Installing custom SQL for accounts.Profile model
Installing custom SQL for reviews.Group model
Installing custom SQL for reviews.ReviewRequest model
Installing index for admin.LogEntry model
Installing index for auth.Permission model
Installing index for auth.Group_permissions model
Installing index for auth.User_user_permissions model
Installing index for auth.User_groups model
Installing index for auth.Message model
Installing index for siteconfig.SiteConfiguration model
Installing index for accounts.ReviewRequestVisit model
Installing index for accounts.Profile_starred_groups model
Installing index for accounts.Profile_starred_review_requests model
Installing index for diffviewer.FileDiff model
Installing index for diffviewer.DiffSet model
Installing index for reviews.Group_users model
Installing index for reviews.DefaultReviewer_repository model
Installing index for reviews.DefaultReviewer_people model
Installing index for reviews.DefaultReviewer_groups model
Installing index for reviews.ReviewRequest_changedescs model
Installing index for reviews.ReviewRequest_target_people model
Installing index for reviews.ReviewRequest_inactive_screenshots model
Installing index for reviews.ReviewRequest_screenshots model
Installing index for reviews.ReviewRequest_target_groups model
Installing index for reviews.ReviewRequest model
Installing index for reviews.ReviewRequestDraft_target_people model
Installing index for reviews.ReviewRequestDraft_inactive_screenshots model
Installing index for reviews.ReviewRequestDraft_screenshots model
Installing index for reviews.ReviewRequestDraft_target_groups model
Installing index for reviews.ReviewRequestDraft model
Installing index for reviews.Comment model
Installing index for reviews.ScreenshotComment model
Installing index for reviews.Review_comments model
Installing index for reviews.Review_screenshot_comments model
Installing index for reviews.Review model
Installing index for scmtools.Repository model
Installing index for django_evolution.Evolution model
No fixtures found.
OK
Performing migrations ... No evolution required.
OK
Creating administrator account ... OK
Saving site settings ... OK


* The site has been installed

The site has been installed in c:\reviewboard

Sample configuration files for web servers and cron are available
in the conf/ directory.

You need to modify the ownership of the following directories and
their contents to be owned by the web server:
* c:\reviewboard\htdocs\media\uploaded
* c:\reviewboard\data

For more information, visit:

http://www.reviewboard.org/docs/manual/dev/admin/sites/creating-
sites/

C:\reviewboard\conf\lighttpd.conf

C:\LightTPD\conf\lighttpd.conf
にコピー

コマンドプロンプトで
C:\LightTPD
に移動して

> LightTPD.exe -f conf/lighttpd.conf -m lib -D

を実行すると


c:\LightTPD>LightTPD.exe -f conf/lighttpd.conf -m lib -D
2010-10-09 21:59:46: (configfile.c.1206) a default document-root has to be set
2010-10-09 21:59:46: (server.c.624) setting default values failed

lighttpd.conf
をいろいろ書き換えても


2010-10-09 22:11:28: (plugin.c.169) dlopen() failed for: lib/mod_auth.dll No suc
h file or directory
2010-10-09 22:11:28: (server.c.654) loading plugins finally failed

とかでてだめ。lighttpdのWindowsでの問題っぽい。


あきらめて、Apache + mod_pythonでやろ。

ApacheはWin32 Binary including OpenSSL 0.9.8oのhttpd-2.2.16-win32-x86-openssl-0.9.8o.msiをゲットしてインストール。念のためカスタムインストールでインストール場所をC:\Apache2.2に変更。

mod_python
いろいろあるが
http://ftp.kddilabs.jp/infosystems/apache//httpd/modpython/win/3.3.1/
からApache2.2でPython2.5のmod_python-3.3.1.win32-py2.5-Apache2.2.exeをゲットしてインストール
Apacheのインストール場所を聞かれるので
C:\Apache2.2
を指定。


インストールはこれでおしまい。つぎはサイト作成とApache設定。
lighttpd用ではなくてApache用にサイトを作成。
まず、c:\reviewboardは削除か移動してなくしておいて、
c:\>rb-site install c:\reviewboard
を再度実行。


c:\>rb-site install c:\reviewboard


* Welcome to the Review Board site installation wizard

This will prepare a Review Board site installation in:

c:\reviewboard

We need to know a few things before we can prepare your site for
installation. This will only take a few minutes.


* Make sure you have the modules you need

Depending on your installation, you may need certain Python
modules and servers that are missing.

If you need support for any of the following, you will need to
install the necessary modules and restart the install.

Databases (optional):
* MySQL (MySQLdb)
* PostgreSQL (psycopg2)


* What's the host name for this site?

This should be the fully-qualified host name without the http://,
port or path.

Domain Name: localhost


* What URL path points to Review Board?

Typically, Review Board exists at the root of a URL. For example,
http://reviews.example.com/. In this case, you would specify "/".

However, if you want to listen to, say,
http://example.com/reviews/, you can specify "/reviews/".

Note that this is the path relative to the domain and should not
include the domain name.

The default is /

Root Path [/]:


* What URL will point to the media files?

While most installations distribute media files on the same server
as the rest of Review Board, some custom installs may instead have
a separate server for this purpose.

The default is media/

Media URL [media/]:


* What database type will you be using?

You can type either the name or the number from the list below.

(1) sqlite3

Database Type: 1


* Determining database file path

The sqlite database file will be stored in
c:\reviewboard\data\reviewboard.db

If you are migrating from an existing installation, you can move
your existing database there, or edit settings_local.py to point
to your old location.


* What cache mechanism should be used?

memcached is strongly recommended. Use it unless you have a good
reason not to.

You can type either the name or the number from the list below.

(1) memcached
(2) file

Cache Type: 1


* What memcached connection string should be used?

This is generally in the format of memcached://hostname:port/

The default is memcached://localhost:11211/

Memcache Server [memcached://localhost:11211/]:


* What web server will you be using?

You can type either the name or the number from the list below.

(1) apache
(2) lighttpd

Web Server: 1


* What Python loader module will you be using?

Based on our experiences, we recommend using modpython with Review
Board.

You can type either the name or the number from the list below.

(1) modpython
(2) fastcgi
(3) wsgi

Python Loader: 1


* Create an administrator account

To configure Review Board, you'll need an administrator account.
It is advised to have one administrator and then use that account
to grant administrator permissions to your personal user account.

If you plan to use NIS or LDAP, use an account name other than
your NIS/LDAP account so as to prevent conflicts.

The default is admin

Username [admin]:

Password:

E-Mail Address: my@mail.address


* Installing the site...
Building site directories ... OK
Building site configuration files ... OK
Creating database ... Creating table django_admin_log
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_site
Creating table django_session
Creating table siteconfig_siteconfiguration
Creating table accounts_reviewrequestvisit
Creating table accounts_profile_starred_groups
Creating table accounts_profile_starred_review_requests
Creating table accounts_profile
Creating table changedescs_changedescription
Creating table diffviewer_filediff
Creating table diffviewer_diffset
Creating table diffviewer_diffsethistory
Creating table reviews_group_users
Creating table reviews_group
Creating table reviews_defaultreviewer_repository
Creating table reviews_defaultreviewer_people
Creating table reviews_defaultreviewer_groups
Creating table reviews_defaultreviewer
Creating table reviews_screenshot
Creating table reviews_reviewrequest_changedescs
Creating table reviews_reviewrequest_target_people
Creating table reviews_reviewrequest_inactive_screenshots
Creating table reviews_reviewrequest_screenshots
Creating table reviews_reviewrequest_target_groups
Creating table reviews_reviewrequest
Creating table reviews_reviewrequestdraft_target_people
Creating table reviews_reviewrequestdraft_inactive_screenshots
Creating table reviews_reviewrequestdraft_screenshots
Creating table reviews_reviewrequestdraft_target_groups
Creating table reviews_reviewrequestdraft
Creating table reviews_comment
Creating table reviews_screenshotcomment
Creating table reviews_review_comments
Creating table reviews_review_screenshot_comments
Creating table reviews_review
Creating table scmtools_tool
Creating table scmtools_repository
Creating table django_project_version
Creating table django_evolution
C:\Python25\lib\site-packages\Crypto\Util\randpool.py:40: RandomPool_Deprecation
Warning: This application uses RandomPool, which is BROKEN in older releases. S
ee http://www.pycrypto.org/randpool-broken
RandomPool_DeprecationWarning)
Registering new SCM Tool Subversion (reviewboard.scmtools.svn.SVNTool) in databa
se
Registering new SCM Tool Git (reviewboard.scmtools.git.GitTool) in database
Registering new SCM Tool Bazaar (reviewboard.scmtools.bzr.BZRTool) in database
Registering new SCM Tool CVS (reviewboard.scmtools.cvs.CVSTool) in database
Registering new SCM Tool Perforce (reviewboard.scmtools.perforce.PerforceTool) i
n database
Registering new SCM Tool Clear Case (reviewboard.scmtools.clearcase.ClearCaseToo
l) in database
Registering new SCM Tool Mercurial (reviewboard.scmtools.hg.HgTool) in database
Installing baseline version
Evolutions in diffviewer baseline: add_parent_diffs, filediff_filenames_1024_cha
rs, diffset_basedir, filediff_status
Evolutions in reviews baseline: change_descriptions, last_review_timestamp, ship
it_count, default_reviewer_repositories, null_repository
Evolutions in scmtools baseline: bugzilla_url_charfield, repository_raw_file_url
, repository_visible, repository_path_length_255
Installing custom SQL for accounts.Profile model
Installing custom SQL for reviews.Group model
Installing custom SQL for reviews.ReviewRequest model
Installing index for admin.LogEntry model
Installing index for auth.Permission model
Installing index for auth.Group_permissions model
Installing index for auth.User_user_permissions model
Installing index for auth.User_groups model
Installing index for auth.Message model
Installing index for siteconfig.SiteConfiguration model
Installing index for accounts.ReviewRequestVisit model
Installing index for accounts.Profile_starred_groups model
Installing index for accounts.Profile_starred_review_requests model
Installing index for diffviewer.FileDiff model
Installing index for diffviewer.DiffSet model
Installing index for reviews.Group_users model
Installing index for reviews.DefaultReviewer_repository model
Installing index for reviews.DefaultReviewer_people model
Installing index for reviews.DefaultReviewer_groups model
Installing index for reviews.ReviewRequest_changedescs model
Installing index for reviews.ReviewRequest_target_people model
Installing index for reviews.ReviewRequest_inactive_screenshots model
Installing index for reviews.ReviewRequest_screenshots model
Installing index for reviews.ReviewRequest_target_groups model
Installing index for reviews.ReviewRequest model
Installing index for reviews.ReviewRequestDraft_target_people model
Installing index for reviews.ReviewRequestDraft_inactive_screenshots model
Installing index for reviews.ReviewRequestDraft_screenshots model
Installing index for reviews.ReviewRequestDraft_target_groups model
Installing index for reviews.ReviewRequestDraft model
Installing index for reviews.Comment model
Installing index for reviews.ScreenshotComment model
Installing index for reviews.Review_comments model
Installing index for reviews.Review_screenshot_comments model
Installing index for reviews.Review model
Installing index for scmtools.Repository model
Installing index for django_evolution.Evolution model
No fixtures found.
OK
Performing migrations ... No evolution required.
OK
Creating administrator account ... OK
Saving site settings ... OK


* The site has been installed

The site has been installed in c:\reviewboard

Sample configuration files for web servers and cron are available
in the conf/ directory.

You need to modify the ownership of the following directories and
their contents to be owned by the web server:
* c:\reviewboard\htdocs\media\uploaded
* c:\reviewboard\data

For more information, visit:

http://www.reviewboard.org/docs/manual/dev/admin/sites/creating-
sites/
c:\>

C:\reviewboard\conf\apache-modpython.conf
が生成されているので、これを
C:\Apache2.2\
にコピー

C:\Apache2.2\conf\httpd.conf

LoadModule python_module modules/mod_python.so

Include conf/apache-modpython.conf
を追記

Apache再起動で
403 Forbidden

apache-modpython.conf
のDirectoryセクションを


<Directory "c:/reviewboard/htdocs">
#AllowOverride All
allow from all
</Directory>

にすればよいらしい。

ちなみにAllowOverride Allは.htaccessファイルに関係するっぽい

しかしまだ、403 Forbiddenでる

httpd.conf

DocumentRootあたりがVirtualHostの/とバッティングしているとみて、


DocumentRoot "C:/Apache2.2/htdocs"



<Directory />

から6行と

<Directory "C:/Apache2.2/htdocs">
~中略~
</Directory>

の3つをてきとーに削除してOK。

/ がバッティングしなけりゃよいっぽくて、
rb-site install時に
Root Path [/]:
でデフォルトの/を選択するのではなくて、/reviews/を選択+上記のDirectoryセクションをallow from allしてもOK。

Reviewboard


2011/02/16 追記
Subversionつかうなら下記が必要
PySVN

http://pysvn.tigris.org/servlets/ProjectDocumentList


Extension と WorkBench ともに Old Releases に Python2.5用のbinaryあり
http://pysvn.tigris.org/servlets/ProjectDocumentList?folderID=5840&expandFolder=5840&folderID=7631

py25-pysvn-svn161-1.7.0-1177.exe

よくわからんが「svn161」に合わせて
http://pysvn.tigris.org/servlets/ProjectDocumentList?folderID=7631&expandFolder=7631&folderID=5840

pysvn-workbench-svn161-1.6.0-1180.exe


ついでに、
検索できるようになるとかの
PyLucene
http://www.reviewboard.org/docs/manual/dev/admin/sites/enabling-search/

http://code.google.com/p/pylucene-win32-binary/downloads/list
のpy2.5を指定
C:\Python25>easy_install http://pylucene-win32-binary.googlecode.com/files/lucene-2.4.0-py2.5-win32.egg

|

« 【解決】Retrospectiva 2.0.0 をWindowsにインストール | トップページ | Mac OS X (10.6.5 Snow Leopard)に BootCamp 3.2 で Windows7(64bit) を入れる »

Windows」カテゴリの記事

パソコン・インターネット」カテゴリの記事

コメント

ReviewBoardを使いたくこの記事を参考にさせていただきました。
ほぼ終盤まで順調に進んだのですが、最後が上手くいかず、アドバイス頂けないでしょうか?

httpd.confの編集の、
"403 forbidden"
が出ないところまではよいものの、表示が、
"Index of /"
"・errordocs"
"・media"
とC:\reviewboard\htdocsのディレクトリ構成が表示されてしまいます。

reviewboardの最新版は1.6ですが、この記事に合わせて1.5で実施しています。
当方Apache等に関しては全く知識がなく、本記事沿って進める程度の知識しかございません。。。

投稿: プリリン | 2012年12月15日 (土) 22時42分

申し訳ありません。
上記の件は、解決しました。Rootの指定が悪かったようです。

正、次は
"Manual server updates required"
という表示が出ました。
https://groups.google.com/forum/?fromgroups=#!msg/reviewboard/mDb_G8tQHMQ/6yjClX9KwvYJ

に似たような投稿がありましたので、しばらく探ってみます。もし解決策ご存知でしたら、また教えて下さい。

投稿: プリリン | 2012年12月15日 (土) 23時12分

プリリンさん

コメント頂いていたようで、ありがとうございます。9ヶ月前のコメントに返事をして、大変恐縮です。

既に解決したと思いますが・・・、こちらでは "Manual server updates required" がでた記憶はないです。

http://www.reviewboard.org/
にて
「Manual server updates required」で検索するとかなりヒットします。皆さんここでハマっているようですね。

投稿: jimmy | 2013年9月 8日 (日) 12時01分

コメントを書く



(ウェブ上には掲載しません)




トラックバック

この記事のトラックバックURL:
http://app.f.cocolog-nifty.com/t/trackback/1009744/37038393

この記事へのトラックバック一覧です: Review Board 1.5 をWindowsにインストール (LightTPDでは動かずApache+mod_pythonで動いた):

« 【解決】Retrospectiva 2.0.0 をWindowsにインストール | トップページ | Mac OS X (10.6.5 Snow Leopard)に BootCamp 3.2 で Windows7(64bit) を入れる »