I am trying to make gitweb work with gitolite... but unsuccessful so far.
I am working on a RedHat Linux machine. A user called git exists.
gitolite
You need to add the Gitolite contrib/gitweb.conf at the end of /etc/gitweb_config.perl.
In other words, you need to call a Gitolite function from your gitweb.conf perl file, otherwise the integration GitWeb-Gitolite will never work.
# check for (at least) "R" permission
my ($perm, $creator) = &repo_rights($repo);
return ($perm =~ /R/);
(here repo_rights is a method from gitolite.pm)
Check the section "helping with gitweb".
The last lines you need to add at then end of gitweb_config.perl are:
use lib (".");
require "gitweb.conf.pl";
That way, you will avoid any "500 - Internal Server Error syntax error at /etc/gitweb.conf" error message.
If you don't have a gitweb_config.perl in which you declare gitweb.conf.pl, but directly "gitweb.conf.pl", then add "use lib (".");" as the first line of that file.