# gitweb on shared hosting

2 messages from 2007-06-02 to 2007-06-03. Participants: Mircea Bardac, Jakub Narebski.
Thread: https://gitlist.dev/t/8407

## Mircea Bardac, 2007-06-02 16:53

Subject: gitweb on shared hosting
Message-ID: <200706021953.09942.dev.list@mircea.bardac.net>
URL: https://gitlist.dev/e/200706021953.09942.dev.list%40mircea.bardac.net

```
Hi everybody,

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.

I expected it to be installable just as any other web application:
* get gitweb.cgi and related files + place them on the webserver
* modify a config file (gitweb.cgi) to update the paths + gitweb options
* (eventually) adjust server configuration for CGI in the wanted dir
DONE.

Also, having configuration information spread across several files 
(README/INSTALL/gitweb.cgi) doesn't help much.

It is also very strange to have README/"How to configure gitweb for your local 
system" saying "You can specify the following configuration variables when 
buiding GIT". That means I have to rebuild GIT (actually, only 
gitweb/gitweb.cgi) to configure gitweb => I need to download the sources by 
hand instead of using the already installed gitweb on my system (the one 
which came with the git package).

Is there any strong reason to have configuration at build-time at all? It 
would be a lot easier IMO to have it *just* by config files. I'm saying this 
because most of the install process is manual anyway (copying/moving files).


Many thanks,
Mircea

-- 
http://mircea.bardac.net

```

## Jakub Narebski, 2007-06-03 18:36

Subject: Re: gitweb on shared hosting
Message-ID: <f3v1cg$ft4$1@sea.gmane.org>
URL: https://gitlist.dev/e/f3v1cg%24ft4%241%40sea.gmane.org
In-Reply-To: <200706021953.09942.dev.list@mircea.bardac.net>

```
Mircea Bardac wrote:

> It is also very strange to have README/"How to configure gitweb for your local 
> system" saying "You can specify the following configuration variables when 
> buiding GIT". That means I have to rebuild GIT (actually, only 
> gitweb/gitweb.cgi) to configure gitweb => I need to download the sources by 
> hand instead of using the already installed gitweb on my system (the one 
> which came with the git package).

First, it is when building gitweb/gitweb.cgi from gitweb/gitweb.perl, but
in practice that is just filling configuration in a few places. See the
places in the source, and later you can edit gitweb.cgi by hand.

> Is there any strong reason to have configuration at build-time at all? It 
> would be a lot easier IMO to have it *just* by config files. I'm saying this 
> because most of the install process is manual anyway (copying/moving files).

You can override configuration using config file (with exception of name of
config file), and put [almost] all configuration in config file.

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

```
