server:joel:gitweb:installation
Dies ist eine alte Version des Dokuments!
git.feggm.de - gitweb
- install package through repository
apt-get install gitweb - create web-directory
mkdir -p /var/www/git/cgi-bin
- create soft-link for gitweb.cgi
ln -s /usr/lib/cgi-bin/gitweb.cgi /var/www/git/cgi-bin
- copy gitweb files to web-directory
cp -a /usr/share/gitweb/* /var/www/git
- enable apache rewrite module
a2enmod rewrite
- create vhost config-file
vi /etc/apache2/sites-available/git
- enable virtual host
a2ensite git - add apache-user (e.g. www-data) to git-group (e.g. git)
- create softlink to public repo
ln -s /var/git/repositories/sample.git /var/cache/git/
- add a description to the repository
vi /var/git/repositories/sample.git/description
- set owner of repository
vi /var/git/repositories/temperature.git/config
[gitweb] owner = "Your name"
<note>Repeat the last 3 steps for all repositories which should be accessible through gitweb.</note>
- restart apache
service apache2 restart
server/joel/gitweb/installation.1353927447.txt.gz · Zuletzt geändert: (Externe Bearbeitung)
