You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Le Sandie edited this page Mar 11, 2016
·
2 revisions
Download gitlist stable version
Install it under /var/www/html and make sure that in the httpd.conf that directory has the following options:
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
If the repositories are in other directory, for example /var/www or /home/repos then you have to create a link from /var/www/html to the repo dir
Copy config.ini-example to config.ini and change the repositories and hidden properties to your likes:
[git]client = '/usr/bin/git'; Your git executable pathdefault_branch = 'master'; Default branch when HEAD is detached
repositories[] = '/var/www/html/';Path to your repositories
hidden[] = '/var/www/html/opcache-gui';You can hide repositories from GitList
Edit .htaccess and change the RewriteBase url to /gitlist/ if you are going to use an alias directory instead of a VirtualHost (for example http://localhost/gitlist). If not leave commented:
<IfModulemod_rewrite.c>
Options -MultiViews +SymLinksIfOwnerMatch
RewriteEngineOnRewriteBase /gitlist/
RewriteCond%{REQUEST_FILENAME}!-fRewriteRule^(.*)$index.php/$1 [L,NC]
</ifmodule>
<Filesconfig.ini>
order allow,deny
deny from all
</files>
Edit /etc/httpd/conf.d/gitlist.conf
Alias/gitlist/var/www/html/gitlist
<Directory/var/www/html/gitlist/>
Options FollowSymLinks
AllowOverride All
</directory>