Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ubuntu server, nginx, and cgit via fcgiwrap+spawn-fcgi
# install nginx via your favorite method
...
# ensure primary nginx config file `/etc/nginx/nginx.conf` contains the following within
# the `http` block so that symlinked config from /etc/nginx/sites-available/* are included
include /etc/nginx/sites-enabled/*;
# install deps and build fcgiwrap
sudo aptitude install spawn-fcgi libfcgi-dev
curl -L -o fcgiwrap-1.1.0.tar.gz http://github.com/gnosek/fcgiwrap/archive/1.1.0.tar.gz
tar xzf fcgiwrap-1.1.0.tar.gz && cd fcgiwrap-1.1.0
autoreconf -i && ./configure && make
sudo cp -i fcgiwrap /usr/local/sbin
# download and build cgit
curl -L -O http://git.zx2c4.com/cgit/snapshot/cgit-0.10.1.tar.xz
tar xJf cgit-0.10.1.tar.xz && cd cgit-0.10.1
vim cgit.conf
# add the following lines to cgit.conf
GIT_VER = 1.9.1
GIT_URL = https://github.com/git/git/archive/v$(GIT_VER).tar.gz
make get-git
make && sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.