lighttpd command not found

In this troubleshooting guide we learn how to fix lighttpd command not found error message

Introduction

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

lighttpd: command not found

or when using sudo you get the following error message

sudo: lighttpd: command not found

Solutions to lighttpd: command not found

How To Fix lighttpd: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu lighttpd is provided by lighttpd package.

lighttpd is:

lighttpd is a small webserver and fast webserver developed with security in mind and a lot of features. It has support for

  • CGI, FastCGI and SSI
  • virtual hosts
  • URL rewriting
  • authentication (plain files, htpasswd, LDAP)
  • transparent content compression
  • conditional configuration
  • HTTP proxying and configuration is straight-forward and easy.

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

sudo apt-get -y install lighttpd

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

You can also use apt command to install lighttpd.

sudo apt -y install lighttpd

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

sudo aptitude install lighttpd

Summary

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