How To Install fcgiwrap on CentOS 7

In this tutorial we learn how to install fcgiwrap on CentOS 7. fcgiwrap is Simple FastCGI wrapper for CGI scripts

Introduction

In this tutorial we learn how to install fcgiwrap on CentOS 7.

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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install fcgiwrap.

Install fcgiwrap on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install fcgiwrap

Install fcgiwrap on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install fcgiwrap

How To Uninstall fcgiwrap on CentOS 7

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

sudo dnf remove fcgiwrap

References

Summary

In this tutorial we learn how to install fcgiwrap on CentOS 7 using yum and dnf.