Changes

From Amahi Wiki
Jump to: navigation, search
No change in size ,  02:08, 16 March 2012
chkconfig git on
/etc/init.d/git start}}</li>
<li>Edit '''/etc/httpd/conf.d/git.conf''' and replace with this text
{{Text|Text=<Directory /var/hda/web-apps/gitweb/html>
RewriteEngine On
RewriteBase /git/
RewriteRule ^$ gitweb.cgi [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) gitweb.cgi/$1 [QSA,L]
</Directory>}}</li>
<li>Create repository
{{Code|cd /var/cache/git/
cp -r /var/www/git/* html
chown -R apache:users html}}</li>
<li>Edit '''/etc/httpd/conf.d/git.conf''' and replace with this text
{{Text|Text=<Directory /var/hda/web-apps/gitweb/html>
RewriteEngine On
RewriteBase /git/
RewriteRule ^$ gitweb.cgi [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) gitweb.cgi/$1 [QSA,L]
</Directory>}}</li>
<li>Update permissions and restart web server
{{Code|chown -R git.git /var/cache/git
12,424

edits