Goal
Install gitweb on a Debian systemPackages
Needed packages are git, gitweb and git-core.We are going to put the repositories in /home/git/
Apache Setup
The Apache virtual host configuration needed:(VirtualHost *:80) ServerAdmin mihamina@rktmb.org ServerName git.rktmb.org DocumentRoot /usr/share/gitweb ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ (Directory /usr/share/gitweb) Options Indexes FollowSymlinks ExecCGI DirectoryIndex /cgi-bin/gitweb.cgi AllowOverride All (/Directory) ErrorLog /var/log/apache2/error-git-rktmb-org.log LogLevel warn CustomLog /var/log/apache2/access-git-rktmb-org.log combined (/VirtualHost)
GitWeb setup
Just change the line:$projectroot = "/home/git";The other lines are all OK.
Testing
Restart apache.Now go to the ServerName you put in the Apache configuration.