How To Install fcgiwrap on Fedora 34

fcgiwrap is Simple FastCGI wrapper for CGI scripts

Introduction

In this tutorial we learn how to install fcgiwrap on Fedora 34.

What is fcgiwrap

This package provides a simple FastCGI wrapper for CGI scripts with/ following features - very lightweight (84KB of private memory per instance) - fixes broken CR/LF in headers - handles environment in a sane way (CGI scripts get HTTP-related environment vars from FastCGI parameters and inherit all the others from environment of fcgiwrap ) - no configuration, so you can run several sites off the same fcgiwrap pool - passes CGI std error output to std error stream of cgiwrap or FastCGI - support systemd socket activation, launcher program like spawn-fcgi is no longer required on systemd-enabled distributions

We can use yum or dnf to install fcgiwrap on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install fcgiwrap.

Install fcgiwrap on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install fcgiwrap using dnf by running the following command:

sudo dnf -y install fcgiwrap

Install fcgiwrap on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install fcgiwrap using yum by running the following command:

sudo yum -y install fcgiwrap

How To Uninstall fcgiwrap on Fedora 34

To uninstall only the fcgiwrap package we can use the following command:

sudo dnf remove fcgiwrap

fcgiwrap Package Contents on Fedora 34

/etc/sysconfig/fcgiwrap
/usr/lib/.build-id
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/feed13f05d78859b0be11663a8d5800e969754
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/[email protected]
/usr/sbin/fcgiwrap
/usr/share/doc/fcgiwrap
/usr/share/doc/fcgiwrap/README.SELinux
/usr/share/doc/fcgiwrap/README.rst
/usr/share/doc/fcgiwrap/SETUP
/usr/share/licenses/fcgiwrap
/usr/share/licenses/fcgiwrap/COPYING
/usr/share/man/man8/fcgiwrap.8.gz

References

Summary

In this tutorial we learn how to install fcgiwrap on Fedora 34 using yum and dnf.