cgi-fcgi command not found

In this troubleshooting guide we learn how to fix cgi-fcgi command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

cgi-fcgi: command not found

or when using sudo you get the following error message

sudo: cgi-fcgi: command not found

Solutions to cgi-fcgi: command not found

How To Fix cgi-fcgi: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu cgi-fcgi is provided by libfcgi-bin package.

libfcgi-bin is:

FastCGI is a language independent, scalable, open extension to CGI that provides high performance without the limitations of server specific APIs.

This package contains the cgi-fcgi utility to bridge between CGI and FastCGI.

To fix this problem, we can install more using the command below.

sudo apt-get -y install libfcgi-bin

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libfcgi-bin.

sudo apt -y install libfcgi-bin

Or if you have aptitude installed you can use the following command.

sudo aptitude install libfcgi-bin

Summary

In this tutorial we learn how to fix cgi-fcgi command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.