I recently installed my git in my shared hosting now I want to install gitweb but I don't know how to install and configure it.
Do you have any process to share on gitweb installation?
The gitweb section of the git repo does contain detailed installation instructions .
To quote just the first section:
First you have to generate
gitweb.cgi
fromgitweb.perl
using "make gitweb
", then "make install-gitweb
" appropriate files (gitweb.cgi
,gitweb.js
,gitweb.css
,git-logo.png
andgit-favicon.png
) to their destination.
For example ifgit
was (or is) installed with/usr
prefix andgitwebdir
is/var/www/cgi-bin
, you can do:
$ make prefix=/usr gitweb ;# as yourself
# make gitwebdir=/var/www/cgi-bin install-gitweb ;# as root
Alternatively you can use
autoconf
generated./configure
script to set up path to git binaries (viaconfig.mak.autogen
), so you can write instead
$ make configure ;# as yourself
$ ./configure --prefix=/usr ;# as yourself
$ make gitweb ;# as yourself
# make gitwebdir=/var/www/cgi-bin \
install-gitweb ;# as root
The above example assumes that your web server is configured to run
[executable]
files in/var/www/cgi-bin/
as server scripts (as CGI scripts).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.