<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1474671990200_23659">Hi, </div><div id="yui_3_16_0_ym19_1_1474671990200_23659"><br></div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr">After I setup cgit. I got "No repositories found". It is CentOS 7.2 platform. Please help. Here are what I did. </div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr">1. After installed gitolite, I got repos at </div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr">/home/git/repositories/gitolite-admin.git and testing.git</div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr">#Repositories permission:</div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr">ls -alF /home/git<br></div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr">drwxrwxrwx. 5 git git 70 Sep 23 15:19 repositories<br></div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr">#Repositories permission:</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24096">ls -alF repositories</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24098">drwxrwxrwx. 8 git git 4096 Sep 22 17:46 gitolite-admin.git/<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24102">drwxrwxrwx. 7 git git 4096 Sep 22 17:46 testing.git/</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24103"><br id="yui_3_16_0_ym19_1_1474671990200_24104"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24269">ls -alF /home/git/projects.list </div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24270">-rw-rw-r--. 1 git git 46 Sep 23 15:00 /home/git/projects.list</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24270"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24037">cat /home/git/projects.list </div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24038">testing.git</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24039">gitolite-admin.git</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24040"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24040">2. After installed cgit, changed line below in default cgitrc</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24040">clone-url=git://servergit01/$CGIT_REPO_URL git@servergit01:$CGIT_REPO_URL<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24427"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24427">Added 3 lines to default cgitrc at the bottom.</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24427"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24427">enable-git-config=1</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24428">project-list=/home/git/projects.list</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24429">scan-path=/home/git/repositories</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24429"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24429">In /etc/httpd/conf/httpd.conf</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24429"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24429"><IfModule alias_module><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24429"> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24429"></IfModule><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24429"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24823">IncludeOptional conf.d/*.conf</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24824"><br id="yui_3_16_0_ym19_1_1474671990200_24825"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24826"><Directory "/var/www/htdocs/cgit/"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24827"> AllowOverride None</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24828"> Options +ExecCGI</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24829"> Order allow,deny</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24830"> Allow from all</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24831"></Directory></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24832"><br id="yui_3_16_0_ym19_1_1474671990200_24833"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24832">3. Copied /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgit</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24832">cp /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgit<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24832"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24832">#Restart apache</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24832">apachectl restart</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24429"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24040">#ID apache belongs to apache and git groups</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24041"><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24210">groups apache</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24211">apache : apache git</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474671990200_24212"><br id="yui_3_16_0_ym19_1_1474671990200_24213"></div></div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr">However, I got "No repositories found" when I hit the page: <a href="http://servergit01/cgit">http://servergit01/cgit</a></div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr">Please help.</div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr">Gary</div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1474671990200_23659" dir="ltr"><br></div></div></body></html>