April 28, 2007 by xman
Posted in
# Setup gitweb
$ tar jxvf git-1.5.1.2.tar.bz2 # Extract git source
$ cd git-1.5.1.2
$ make GITWEB_PROJECTROOT="/absolute/path/to/git/repository/container" \
GITWEB_CSS="/gitweb/gitweb.css" \
GITWEB_LOGO="/gitweb/git-logo.png" \
GITWEB_FAVICON="/gitweb/git-favicon.png" \
bindir=/usr/local/bin \
gitweb/gitweb.cgi
Edit $GIT in gitweb.cgi to point to git.
[Optional] Edit $site_name in gitweb.cgi.
[Optional] Create a project list file and edit $projects_list in gitweb.cgi.
$ mkdir /var/www/cgi-bin/gitweb
$ cp -fv gitweb/gitweb.cgi /var/www/cgi-bin/gitweb
$ mkdir /var/www/html/gitweb
$ cp -fv gitweb/gitweb.{cgi,css} gitweb/git-{favicon,logo}.png /var/www/html/gitweb
# Setup Apache Web Server
Add if they do not exist in the httpd.conf file:
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
Options Indexes FollowSymlinks ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Access Project Site at: http://host/cgi-bin/gitweb/gitweb.cgi
Post new comment