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?
git repo的gitweb 部分确实包含详细的安装说明。
仅引用第一部分:
首先,您必须使用 " "生成相应
gitweb.cgi
的文件(、、和)到它们的目的地。 例如,如果was (or is) 安装了前缀 and is ,你可以这样做:gitweb.perl
make gitweb
make install-gitweb
gitweb.cgi
gitweb.js
gitweb.css
git-logo.png
git-favicon.png
git
/usr
gitwebdir
/var/www/cgi-bin
$ make prefix=/usr gitweb ;# as yourself
# make gitwebdir=/var/www/cgi-bin install-gitweb ;# as root
或者,您可以使用
autoconf
生成的./configure
脚本来设置 git 二进制文件的路径(通过config.mak.autogen
),因此您可以改为编写
$ make configure ;# as yourself
$ ./configure --prefix=/usr ;# as yourself
$ make gitweb ;# as yourself
# make gitwebdir=/var/www/cgi-bin \
install-gitweb ;# as root
上面的示例假定您的 Web 服务器配置为将
[executable]
文件/var/www/cgi-bin/
作为服务器脚本(作为 CGI 脚本)运行。