spawn-fcgi command not found

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

Introduction

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

spawn-fcgi: command not found

or when using sudo you get the following error message

sudo: spawn-fcgi: command not found

Solutions to spawn-fcgi: command not found

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

In Ubuntu spawn-fcgi is provided by spawn-fcgi package.

spawn-fcgi is:

Allows FastCGI processes to be separated from web server process :

  • Easy creation of chmoded socket.
  • Privilege separation without needing a suid-binary, or running a server as root.
  • You can restart your web server and the FastCGI applications without restarting the others.
  • You can run them in different chroot()s.
  • Running your FastCGI applications doesn’t depend on the web server you are running, which allows for easier testing of/migration to other web servers.

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

sudo apt-get -y install spawn-fcgi

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

You can also use apt command to install spawn-fcgi.

sudo apt -y install spawn-fcgi

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

sudo aptitude install spawn-fcgi

Summary

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