FastCGI application to run cgi applications https://redmine.lighttpd.net/projects/fcgi-cgi
Ir al archivo
Stefan Bühler 24bc87c7da [build] improve (warning) compile flags 2019-08-25 12:20:30 +02:00
cmake [build] improve (warning) compile flags 2019-08-25 12:20:30 +02:00
.gitignore ignore files created by autotools 2015-06-27 12:03:40 +02:00
CMakeLists.txt [build] improve (warning) compile flags 2019-08-25 12:20:30 +02:00
COPYING Initial commit 2009-03-28 13:24:51 +01:00
Makefile.am add some missing files to EXTRA_DIST 2015-06-27 13:33:14 +02:00
README.rst fix some typos, use /var/run instead of /tmp in examples 2015-06-27 12:04:06 +02:00
autogen.sh Add autoconf/automake build system 2009-03-28 13:35:16 +01:00
config.h.cmake Initial commit 2009-03-28 13:24:51 +01:00
configure.ac [build] improve (warning) compile flags 2019-08-25 12:20:30 +02:00
fastcgi.c wait for proper connection close 2013-07-20 14:52:57 +02:00
fastcgi.h Replace GString with GByteArray 2009-11-11 21:14:53 +01:00
fcgi-cgi.1 fix some typos, use /var/run instead of /tmp in examples 2015-06-27 12:04:06 +02:00
fcgi-cgi.c copy PATH environment variable 2013-07-20 15:16:15 +02:00

README.rst

Description
-----------

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

fcgi-cgi is a FastCGI 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).

lighttpd2 won't have a mod_cgi, so you need this FastCGI wrapper to be able
to execute standard cgi applications like mailman and cgit.

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

Usage
-----

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

  #!/bin/sh
  # run script

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


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

* glib >= 2.16.0 (http://www.gtk.org/)
* libev (http://software.schmorp.de/pkg/libev.html)
* 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/fcgi-cgi.git``

 * with autotools::

    ./autogen.sh
    ./configure
    make

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

    cmake .
    make