CentOS5.9にReviewBoardをインストール
必要なものを入れます
# yum install mysql-devel httpd-devel python-devel # easy_install mysql-python # easy_install Review Board # easy_install RbTools
# wget http://modwsgi.googlecode.com/files/mod_wsgi-3.3.tar.gz # tar zxvf mod_wsgi-3.3.tar.gz # cd mod_wsgi-3.3 # ./configure # make & make install
httpd.confに追記
LoadModule wsgi_module modules/mod_wsgi.so
# rb-site install /var/www/reviewboard/
<VirtualHost 192.168.xxx.xxx:80> ServerName reviewboard.local DocumentRoot "/var/www/reviewboard/htdocs" # Error handlers ErrorDocument 500 /errordocs/500.html WSGIPassAuthorization On WSGIScriptAlias / "/var/www/reviewboard/htdocs/reviewboard.wsgi" <Directory "/var/www/reviewboard/htdocs"> AllowOverride All Options -Indexes +FollowSymLinks Allow from all </Directory> # Prevent the server from processing or allowing the rendering of # certain file types. <Location "/media/uploaded"> SetHandler None Options None AddType text/plain .html .htm .shtml .php .php3 .php4 .php5 .phps .asp AddType text/plain .pl .py .fcgi .cgi .phtml .phtm .pht .jsp .sh .rb <IfModule mod_php5.c> php_flag engine off </IfModule> </Location> # Alias static media requests to filesystem Alias /media "/var/www/reviewboard/htdocs/media" Alias /static "/var/www/reviewboard/htdocs/static" Alias /errordocs "/var/www/reviewboard/htdocs/errordocs" Alias /favicon.ico "/var/www/reviewboard/htdocs/static/rb/images/favicon.png" </VirtualHost>