How To Install fcgiwrap on CentOS 8

fcgiwrap is Simple FastCGI wrapper for CGI scripts

Introduction

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

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

Install fcgiwrap on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 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 CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 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 CentOS 8

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

sudo dnf remove fcgiwrap

fcgiwrap Package Contents on CentOS 8

/etc/sysconfig/fcgiwrap
/usr/lib/.build-id
/usr/lib/.build-id/19
/usr/lib/.build-id/19/3659fdbdf8de77ac2484f53c35f734cdb9aabd
/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 CentOS 8 using yum and dnf.