# Install fcgiwrap with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

CGI support for Nginx. Version 1.1.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:fcgiwrap
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install fcgiwrap
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fcgiwrap
```

  Evidence: MacPorts ports tree: www/fcgiwrap/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add fcgiwrap
```

  Evidence: Alpine Linux edge package indexes: fcgiwrap from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install fcgiwrap
```

  Evidence: Debian stable package indexes: fcgiwrap from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install fcgiwrap
```

  Evidence: Fedora Rawhide package metadata: fcgiwrap from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#fcgiwrap
```

  Evidence: nixpkgs package indexes: pkgs/by-name/fc/fcgiwrap/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S fcgiwrap
```

  Evidence: Arch Linux sync databases: fcgiwrap from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install fcgiwrap
```

  Evidence: openSUSE Tumbleweed package metadata: fcgiwrap from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:fcgiwrap
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/fcgiwrap>
- **Version:** 1.1.0
- **Source summary:** CGI support for Nginx
- **Homepage:** <https://www.nginx.com/resources/wiki/start/topics/examples/fcgiwrap/>
- **Repository:** <https://github.com/gnosek/fcgiwrap>
- **Upstream docs:** <https://github.com/gnosek/fcgiwrap#readme>
- **License:** MIT
- **Source archive:** <https://github.com/gnosek/fcgiwrap/archive/refs/tags/1.1.0.tar.gz>
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- fcgiwrap (cli)
- fcgiwrap (alias)

## Dependencies

- fcgi

## Build dependencies

- autoconf
- automake
- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.1.0
- Local data: ok
- Upstream repository: https://github.com/gnosek/fcgiwrap
- Upstream latest detected: 1.1.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

fcgiwrap is a small FastCGI wrapper for running traditional CGI scripts. Its README describes it as lightweight, configuration-free, and intended to execute CGI scripts while passing request state through FastCGI parameters.

The tool is closely associated with Nginx deployments because Nginx does not execute CGI programs directly; fcgiwrap supplies the missing CGI execution layer while the web server talks FastCGI.

### Project history

The public GitHub repository was created in 2008 by Grzegorz Nosek. The README presents fcgiwrap as a simple wrapper rather than a full application server: it links against the FastCGI development library, runs CGI scripts, and handles headers, environment variables, and stderr forwarding.

Over time the repository gained service-manager integration such as systemd socket activation files, reflecting the normal deployment style: a small persistent FastCGI endpoint supervised by the operating system or launched through a helper.

### Adoption history

fcgiwrap's adoption comes from a narrow but durable need: serving existing CGI scripts behind FastCGI-only web-server configurations. The input metadata lists packages across Homebrew, Debian, Ubuntu, Fedora, Arch, Alpine, MacPorts, Nix, openSUSE, and others, which matches its role as infrastructure glue.

The README recommends launchers such as spawn-fcgi and also notes optional systemd support, showing the two common deployment eras for small FastCGI helper daemons.

### How it is used

In direct mode, `SCRIPT_FILENAME` names the CGI program to execute. Otherwise, fcgiwrap combines `DOCUMENT_ROOT` and `SCRIPT_NAME`, then splits the result into the script path and `PATH_INFO`.

Operators usually run it as a long-lived process or socket-activated service, then configure a web server FastCGI location to pass CGI requests to the fcgiwrap socket.

### Why package nerds care

fcgiwrap is the tiny package that keeps old CGI scripts deployable in newer web-server setups. It is not glamorous, but it is exactly the kind of bridge package that prevents legacy admin panels, hooks, and small scripts from forcing a web-server change.

Its package-manager value is that it externalizes CGI support: install one small daemon, point Nginx or another FastCGI-capable server at its socket, and avoid embedding CGI execution in the web server itself.

### Timeline

- 2008: The public gnosek/fcgiwrap GitHub repository was created.
- 2008 onward: fcgiwrap was packaged as a lightweight CGI-over-FastCGI bridge for Unix-like systems.
- Later releases: The repository included systemd socket activation units for `/run/fcgiwrap.sock`.

### Related projects

- FastCGI/fcgi2 provides the protocol and library foundation.
- Nginx, spawn-fcgi, and systemd socket activation are common deployment companions.

### Sources

- <https://github.com/gnosek/fcgiwrap>
- <https://raw.githubusercontent.com/gnosek/fcgiwrap/master/README.rst>
- <https://raw.githubusercontent.com/gnosek/fcgiwrap/master/systemd/fcgiwrap.service>
- <https://raw.githubusercontent.com/gnosek/fcgiwrap/master/systemd/fcgiwrap.socket>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** fcgiwrap
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - fcgiwrap - 1.1.0-16: normalized package name match | Debian stable package indexes: fcgiwrap from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | simple server to run CGI applications over FastCGI | https://github.com/gnosek/fcgiwrap
- Nix - fcgiwrap: normalized package name match | nixpkgs package indexes: pkgs/by-name/fc/fcgiwrap/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - fcgiwrap - 1.1.0-14build1: normalized package name match | Ubuntu 24.04 LTS package indexes: fcgiwrap from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | simple server to run CGI applications over FastCGI | https://github.com/gnosek/fcgiwrap
- apk - fcgiwrap - 1.1.0-r9: normalized package name match | Alpine Linux edge package indexes: fcgiwrap from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Simple server for running CGI applications over FastCGI | https://github.com/gnosek/fcgiwrap
- apk - fcgiwrap-doc - 1.1.0-r9: normalized package name match | Alpine Linux edge package indexes: fcgiwrap-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Simple server for running CGI applications over FastCGI (documentation) | https://github.com/gnosek/fcgiwrap
- apk - fcgiwrap-openrc - 1.1.0-r9: normalized package name match | Alpine Linux edge package indexes: fcgiwrap-openrc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Simple server for running CGI applications over FastCGI (OpenRC init scripts) | https://github.com/gnosek/fcgiwrap
- dnf - fcgiwrap - 1.1.0-27.20181108git99c942c.fc44: normalized package name match | Fedora Rawhide package metadata: fcgiwrap from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Simple FastCGI wrapper for CGI scripts | https://github.com/gnosek/fcgiwrap
- pacman - fcgiwrap - 1.1.0-10: normalized package name match | Arch Linux sync databases: fcgiwrap from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A simple server for running CGI applications over FastCGI. | https://www.nginx.com/resources/wiki/start/topics/examples/fcgiwrap/
- zypper - fcgiwrap - 1.1.0+18+g99c942c-3.23: normalized package name match | openSUSE Tumbleweed package metadata: fcgiwrap from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | FastCGI wrapper for CGI scripts | https://github.com/gnosek/fcgiwrap
- zypper - fcgiwrap-nginx - 1.1.0+18+g99c942c-3.23: normalized package name match | openSUSE Tumbleweed package metadata: fcgiwrap-nginx from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | System services for using fcgiwrap with nginx | https://github.com/gnosek/fcgiwrap
- MacPorts - fcgiwrap: normalized package name match | MacPorts ports tree: www/fcgiwrap/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Documentation packages](https://www.automicvault.com/pkg/documentation-tools/) - Matched documentation, manual, or publishing metadata.
- [Web development packages](https://www.automicvault.com/pkg/web-dev-tools/) - Matched web development metadata.
- [fcgi](https://www.automicvault.com/pkg/brew/fcgi/) - Runtime dependency declared by Homebrew.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [mighttpd2](https://www.automicvault.com/pkg/brew/mighttpd2/) - Shares av.db curated category or tags: cgi, cli, networking, web-server.
- [spawn-fcgi](https://www.automicvault.com/pkg/brew/spawn-fcgi/) - Shares av.db curated category or tags: cli, fastcgi, networking, web-server.
- [webfs](https://www.automicvault.com/pkg/brew/webfs/) - Shares av.db curated category or tags: cgi, cli, networking, web-server.
- [algernon](https://www.automicvault.com/pkg/brew/algernon/) - Shares av.db curated category or tags: cli, networking, web-server.
- [caddy](https://www.automicvault.com/pkg/brew/caddy/) - Shares av.db curated category or tags: cli, networking, web-server.
- [ferron](https://www.automicvault.com/pkg/brew/ferron/) - Shares av.db curated category or tags: cli, networking, web-server.
- [h2o](https://www.automicvault.com/pkg/brew/h2o/) - Shares av.db curated category or tags: cli, networking, web-server.

## Combined YAML source

View the package source record on GitHub. [combined/fcgiwrap.yml](https://github.com/automic-vault/db/blob/main/combined/fcgiwrap.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
