cgit: No repositories found

Gary Yang garyyang6 at
Sat Sep 24 01:41:25 CEST 2016

After I setup cgit. I got "No repositories found". It is CentOS 7.2 platform. Please help. Here are what I did. 
1. After installed gitolite, I got repos at 
/home/git/repositories/gitolite-admin.git and testing.git
#Repositories permission:ls -alF /home/git
drwxrwxrwx.  5 git  git       70 Sep 23 15:19 repositories

#Repositories permission:ls -alF repositoriesdrwxrwxrwx.  8 git git 4096 Sep 22 17:46 gitolite-admin.git/
drwxrwxrwx.  7 git git 4096 Sep 22 17:46 testing.git/
ls -alF /home/git/projects.list -rw-rw-r--. 1 git git 46 Sep 23 15:00 /home/git/projects.list
cat /home/git/projects.list testing.gitgitolite-admin.git
2. After installed cgit, changed line below in default cgitrcclone-url=git://servergit01/$CGIT_REPO_URL git at servergit01:$CGIT_REPO_URL

Added 3 lines to default cgitrc at the bottom.
In /etc/httpd/conf/httpd.conf
<IfModule alias_module>
   ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"</IfModule>

IncludeOptional conf.d/*.conf
<Directory "/var/www/htdocs/cgit/">     AllowOverride None     Options +ExecCGI     Order allow,deny     Allow from all</Directory>
3. Copied /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgitcp /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgit

#Restart apacheapachectl restart
#ID apache belongs to apache and git groupsgroups apacheapache : apache git
However, I got "No repositories found" when I hit the page: http://servergit01/cgit
Please help.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the CGit mailing list