aboutsummaryrefslogtreecommitdiff
path: root/README.rst
blob: 63fa8ba8671c48199cf3b7ea105825bb99e13070 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Description
-----------

:Homepage:
    http://redmine.lighttpd.net/projects/scgi-cgi/wiki

scgi-cgi is a SCGI application to run normal cgi applications. It doesn't
make CGI applications faster, but it allows you to run them on a different
host and with different user permissions (without the need for suexec).

scgi-cgi is released under the `MIT license <http://git.lighttpd.net/scgi-cgi.git/tree/COPYING>`_

Usage
-----

Examples for spawning a scgi-cgi instance with daemontools or runit::

  #!/bin/sh
  # run script

  exec spawn-scgi -n -s /var/run/scgi-cgi.sock -u www-default -U www-data -- /usr/bin/scgi-cgi


Build dependencies
------------------

* libevent (http://libevent.org/)
* cmake or autotools (for snapshots/releases the autotool generated files are included)


Build
-----

* snapshot/release with autotools::

   ./configure
   make

* build from git: ``git clone git://git.lighttpd.net/scgi-cgi.git``

 * with autotools::

    ./autogen.sh
    ./configure
    make

 * with cmake (should work with snapshots/releases too)::

    cmake .
    make