diff --git a/doc/recipes/install-rhel5.txt b/doc/recipes/install-rhel5.txt index f712da5..5cf551a 100644 --- a/doc/recipes/install-rhel5.txt +++ b/doc/recipes/install-rhel5.txt @@ -2,7 +2,7 @@ Installing and Setting up Gitorious on RHEL 5 ============================================= Marko Peltola -2010-06-15 +2010-06-15 (Updated: 2010-08-04) [Gitorious](http://gitorious.org/) is an open source application originally developed for hosting open source projects in git repositories. This document @@ -152,6 +152,12 @@ Apache, but you can use some other web server as well. yum install -y httpd httpd-devel +Install also the mod_xsendfile module to get source tarball downloading working. + + wget http://tn123.ath.cx/mod_xsendfile/mod_xsendfile.c + apxs -cia mod_xsendfile.c + + Install and Configure Passenger ------------------------------- @@ -175,6 +181,10 @@ Set DocumentRoot to `/public`, for example ServerName versotest.it.jyu.fi DocumentRoot /var/www/gitorious/public + + # Enable X-SendFile for Gitorious repo archiving to work + XSendFile on + XSendFileAllowAbove on AllowOverride all @@ -233,19 +243,19 @@ Make sure the permissions on `authorized_keys` are 600 and `~/.ssh` are 700. chmod 600 ~/.ssh/authorized_keys -Change permissions ------------------- +Configuration +------------- -Next go to your gitorious root dir (for example `cd /var/www/gitorious`) +Next go to your Gitorious root dir (for example `cd /var/www/gitorious`) and +remove the .htaccess file and make a directory for pid files. rm public/.htaccess mkdir -p tmp/pids - chmod ug+x script/* - chmod -R g+w config/ log/ public/ tmp/ +Make all the Gitorious scripts executable. + + chmod ug+x script/* -Configuration -------------- Copy the configuration sample files and edit the settings. The files includes good instructions. @@ -335,17 +345,20 @@ Add services to start automatically on boot: chkconfig --add git-daemon chkconfig --add gitorious-poller chkconfig --add git-ultrasphinx + chkconfig --add memcached chkconfig stomp on chkconfig git-daemon on chkconfig gitorious-poller on chkconfig git-ultrasphinx on + chkconfig memcached on Now you can start the services: service git-ultrasphinx start service stomp start + service memcached start service gitorious-poller start service git-daemon start service httpd restart