git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: gitweb on shared hosting

From
MKMartin Koegler <mkoegler@auto.tuwien.ac.at>
Date
Jun 3, 2007, 15:35 UTC
Message-ID
<20070603153541.GA32145@auto.tuwien.ac.at>
Show 5 quoted lines
> I don't know if this is possible or not, but I'm trying with no results.
> 
> Is it possible to install gitweb on a shared hosting system, with no root 
> access. Reading the INSTALL document reveals only information for 
> configuration on build-time/install as root.
It is possible to install gitweb without root access, if you have:
1) A system to compile C programs for the hosting system
2) A directory to copy the binaries to on the hosting system. I would not make it accessible via the webserver.
3) A directory published by the webserver for static files
4) A directory which supports running perl cgis

If the requirements are met, do the following: a) Extract git sources b) Change in the Makefile PREFIX to the directories for the binaries c) run make d) If you compile on the hosting system, simple run make install. If not, create a directory with the same patch as the binary directory on the hosting system, run make install and copy the content of binary directory to the hosting system (preserving the x-bits). e) Copy gitweb/git-favicon.png, gitweb/git-logo.png and gitweb/gitweb.css onto your webserver. f) Install gitweb/gitweb.cgi as perl CGI program. gitweb.cgi needs some configuration. You can specify them either in a seperate configuration file or change the default settings in gitweb.cgi.

You should check the following options: our $GIT = "/homes/user/bin/git"; # path to the git binary our $projectroot = "/pub/git"; # path to the directoriy containing all git repositories our @stylesheets = ("gitweb.css"); # URL to stylesheet our $logo = "git-logo.png"; # URL to image our $favicon = "git-favicon.png"; # URL to image

If the webserver has read (and execute for the binaries) rights on all files (including the repositories), gitweb should work.

mfg Martin Kögler
Message 1 of 1 in “Re: gitweb on shared hosting”
  1. Martin KoeglerJun 3, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.