<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><span>Hi John,</span></div><div id="yui_3_16_0_ym19_1_1474911119324_10166"><span><br></span></div><div id="yui_3_16_0_ym19_1_1474911119324_10163"><br></div><div id="yui_3_16_0_ym19_1_1474911119324_9881">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_1474911119324_9882"><br id="yui_3_16_0_ym19_1_1474911119324_9883"></div><div id="yui_3_16_0_ym19_1_1474911119324_9884">1. After installed gitolite, I got repos at </div><div id="yui_3_16_0_ym19_1_1474911119324_9885"><br id="yui_3_16_0_ym19_1_1474911119324_9886"></div><div id="yui_3_16_0_ym19_1_1474911119324_9887">/home/git/repositories/gitolite-admin.git and testing.git</div><div id="yui_3_16_0_ym19_1_1474911119324_9888"><br id="yui_3_16_0_ym19_1_1474911119324_9889"></div><div id="yui_3_16_0_ym19_1_1474911119324_9890">#Repositories permission:</div><div id="yui_3_16_0_ym19_1_1474911119324_9891">ls -alF /home/git</div><div id="yui_3_16_0_ym19_1_1474911119324_9892">drwxrwxrwx. 5 git git 70 Sep 23 15:19 repositories</div><div id="yui_3_16_0_ym19_1_1474911119324_9893"><br id="yui_3_16_0_ym19_1_1474911119324_9894"></div><div id="yui_3_16_0_ym19_1_1474911119324_9895">#Repositories permission:</div><div id="yui_3_16_0_ym19_1_1474911119324_9896">ls -alF repositories</div><div id="yui_3_16_0_ym19_1_1474911119324_9897">drwxrwxrwx. 8 git git 4096 Sep 22 17:46 gitolite-admin.git/</div><div id="yui_3_16_0_ym19_1_1474911119324_9898">drwxrwxrwx. 7 git git 4096 Sep 22 17:46 testing.git/</div><div id="yui_3_16_0_ym19_1_1474911119324_9899"><br id="yui_3_16_0_ym19_1_1474911119324_9900"></div><div id="yui_3_16_0_ym19_1_1474911119324_9901">ls -alF /home/git/projects.list </div><div id="yui_3_16_0_ym19_1_1474911119324_9902">-rw-rw-r--. 1 git git 46 Sep 23 15:00 /home/git/projects.list</div><div id="yui_3_16_0_ym19_1_1474911119324_9903"><br id="yui_3_16_0_ym19_1_1474911119324_9904"></div><div id="yui_3_16_0_ym19_1_1474911119324_9905">cat /home/git/projects.list </div><div id="yui_3_16_0_ym19_1_1474911119324_9906">testing.git</div><div id="yui_3_16_0_ym19_1_1474911119324_9907">gitolite-admin.git</div><div id="yui_3_16_0_ym19_1_1474911119324_9908"><br id="yui_3_16_0_ym19_1_1474911119324_9909"></div><div id="yui_3_16_0_ym19_1_1474911119324_9910">2. After installed cgit, changed line below in default cgitrc</div><div id="yui_3_16_0_ym19_1_1474911119324_9911">clone-url=git://servergit01/$CGIT_REPO_URL git@servergit01:$CGIT_REPO_URL</div><div id="yui_3_16_0_ym19_1_1474911119324_9912"><br id="yui_3_16_0_ym19_1_1474911119324_9913"></div><div id="yui_3_16_0_ym19_1_1474911119324_9914">Added 3 lines to default cgitrc at the bottom.</div><div id="yui_3_16_0_ym19_1_1474911119324_9915"><br id="yui_3_16_0_ym19_1_1474911119324_9916"></div><div id="yui_3_16_0_ym19_1_1474911119324_9917">enable-git-config=1</div><div id="yui_3_16_0_ym19_1_1474911119324_9918">project-list=/home/git/projects.list</div><div id="yui_3_16_0_ym19_1_1474911119324_9919">scan-path=/home/git/repositories</div><div id="yui_3_16_0_ym19_1_1474911119324_9920"><br id="yui_3_16_0_ym19_1_1474911119324_9921"></div><div id="yui_3_16_0_ym19_1_1474911119324_9922">In /etc/httpd/conf/httpd.conf</div><div id="yui_3_16_0_ym19_1_1474911119324_9923"><br id="yui_3_16_0_ym19_1_1474911119324_9924"></div><div id="yui_3_16_0_ym19_1_1474911119324_9925"><IfModule alias_module></div><div id="yui_3_16_0_ym19_1_1474911119324_9926"> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"</div><div id="yui_3_16_0_ym19_1_1474911119324_9927"></IfModule></div><div id="yui_3_16_0_ym19_1_1474911119324_9928"><br id="yui_3_16_0_ym19_1_1474911119324_9929"></div><div id="yui_3_16_0_ym19_1_1474911119324_9930">IncludeOptional conf.d/*.conf</div><div id="yui_3_16_0_ym19_1_1474911119324_9931"><br id="yui_3_16_0_ym19_1_1474911119324_9932"></div><div id="yui_3_16_0_ym19_1_1474911119324_9933"><Directory "/var/www/htdocs/cgit/"></div><div id="yui_3_16_0_ym19_1_1474911119324_9934"> AllowOverride None</div><div id="yui_3_16_0_ym19_1_1474911119324_9935"> Options +ExecCGI</div><div id="yui_3_16_0_ym19_1_1474911119324_9936"> Order allow,deny</div><div id="yui_3_16_0_ym19_1_1474911119324_9937"> Allow from all</div><div id="yui_3_16_0_ym19_1_1474911119324_9938"></Directory></div><div id="yui_3_16_0_ym19_1_1474911119324_9939"><br id="yui_3_16_0_ym19_1_1474911119324_9940"></div><div id="yui_3_16_0_ym19_1_1474911119324_9941">3. Copied /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgit</div><div id="yui_3_16_0_ym19_1_1474911119324_9942">cp /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgit</div><div id="yui_3_16_0_ym19_1_1474911119324_9943"><br id="yui_3_16_0_ym19_1_1474911119324_9944"></div><div id="yui_3_16_0_ym19_1_1474911119324_9945">#Restart apache</div><div id="yui_3_16_0_ym19_1_1474911119324_9946">apachectl restart</div><div id="yui_3_16_0_ym19_1_1474911119324_9947"><br id="yui_3_16_0_ym19_1_1474911119324_9948"></div><div id="yui_3_16_0_ym19_1_1474911119324_9949">#ID apache belongs to apache and git groups</div><div id="yui_3_16_0_ym19_1_1474911119324_9950">groups apache</div><div id="yui_3_16_0_ym19_1_1474911119324_9951">apache : apache git</div><div id="yui_3_16_0_ym19_1_1474911119324_9952"><br id="yui_3_16_0_ym19_1_1474911119324_9953"></div><div id="yui_3_16_0_ym19_1_1474911119324_9954">However, I got "No repositories found" when I hit the page: http://servergit01/cgit</div><div id="yui_3_16_0_ym19_1_1474911119324_9955"><br id="yui_3_16_0_ym19_1_1474911119324_9956"></div><div id="yui_3_16_0_ym19_1_1474911119324_9957">Please help.</div><div id="yui_3_16_0_ym19_1_1474911119324_9958"><br id="yui_3_16_0_ym19_1_1474911119324_9959"></div><div id="yui_3_16_0_ym19_1_1474911119324_9960"><br id="yui_3_16_0_ym19_1_1474911119324_9961"></div><div></div><div id="yui_3_16_0_ym19_1_1474911119324_9962">Gary</div><div dir="ltr" id="yui_3_16_0_ym19_1_1474911119324_9963"><br id="yui_3_16_0_ym19_1_1474911119324_9964"></div><div dir="ltr" id="yui_3_16_0_ym19_1_1474911119324_9963"><br></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> On Monday, September 26, 2016 7:15 AM, John Keeping <john@keeping.me.uk> wrote:<br></font></div> <br><br> <div class="y_msg_container">Please try to send plain text email, I've had to reformat this heavily<br clear="none">to make it readable.<br clear="none"><br clear="none">On Fri, Sep 23, 2016 at 11:41:25PM +0000, Gary Yang wrote:<br clear="none">> After I setup cgit. I got "No repositories found". It is CentOS 7.2 platform. Please help. Here are what I did.<br clear="none">> <br clear="none">> 1. After installed gitolite, I got repos at /home/git/repositories/gitolite-admin.git and testing.git<br clear="none">> <br clear="none">> #Repositories permission:<br clear="none">> ls -alF /home/gits<div class="yqt7686657484" id="yqtfd11551"><br clear="none">> drwxrwxrwx. 5 git git 70 Sep 23 15:19 repositories<br clear="none">> <br clear="none">> #Repositories permission:<br clear="none">> ls -alF repositories<br clear="none">> drwxrwxrwx. 8 git git 4096 Sep 22 17:46 gitolite-admin.git/<br clear="none">> drwxrwxrwx. 7 git git 4096 Sep 22 17:46 testing.git/<br clear="none">> <br clear="none">> ls -alF /home/git/projects.list<br clear="none">> -rw-rw-r--. 1 git git 46 Sep 23 15:00 /home/git/projects.list<br clear="none">> cat /home/git/projects.list<br clear="none">> testing.gitgitolite-admin.git<br clear="none">> <br clear="none">> 2. After installed cgit, changed line below in default cgitrc<br clear="none"><br clear="none">> clone-url=git://servergit01/$CGIT_REPO_URL <a shape="rect" ymailto="mailto:git@servergit01" href="mailto:git@servergit01">git@servergit01</a>:$CGIT_REPO_URL<br clear="none">> <br clear="none">> Added 3 lines to default cgitrc at the bottom.<br clear="none">> enable-git-config=1<br clear="none">> project-list=/home/git/projects.list<br clear="none">> scan-path=/home/git/repositories<br clear="none"><br clear="none">> In /etc/httpd/conf/httpd.conf<br clear="none">> <IfModule alias_module><br clear="none">> ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"</IfModule><br clear="none">> IncludeOptional conf.d/*.conf<br clear="none">> <Directory "/var/www/htdocs/cgit/"><br clear="none">> AllowOverride None<br clear="none">> Options +ExecCGI<br clear="none">> Order allow,deny<br clear="none">> Allow from all<br clear="none">> </Directory><br clear="none">> 3. Copied /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgit<br clear="none"><br clear="none">> cp /var/www/htdocs/cgit/cgit.cgi to /var/www/cgi-bin/cgit<br clear="none">> <br clear="none">> However, I got "No repositories found" when I hit the page: <a shape="rect" href="http://servergit01/cgit" target="_blank">http://servergit01/cgit</a><br clear="none">> Please help.</div><br clear="none"><br clear="none">This all looks sensible, but the upstream CGit project does not ship a<br clear="none">default cgitrc, so you must be using something provided by your<br clear="none">distribution. I can't say what other options may be set there.<br clear="none"><br clear="none">One option that might be relevant is "strict-export", if that is set<br clear="none">there are additional requirements for repositories to be displayed.<div class="yqt7686657484" id="yqtfd35461"><br clear="none"></div><br><br></div> </div> </div> </div></div></body></html>