micro-httpd command not found

In this troubleshooting guide we learn how to fix micro-httpd command not found error message

Introduction

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

micro-httpd: command not found

or when using sudo you get the following error message

sudo: micro-httpd: command not found

Solutions to micro-httpd: command not found

How To Fix micro-httpd: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu micro-httpd is provided by micro-httpd package.

micro-httpd is:

A very small HTTP server implemented in 150 lines of code. Program can be used to serve HTTPS by wrapping it with stunnel. It implements all the basic features of an HTTP server, including:

  • Security against “..” filename snooping
  • The common MIME types
  • Trailing-slash redirection
  • index.html
  • Directory listings

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

sudo apt-get -y install micro-httpd

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

You can also use apt command to install micro-httpd.

sudo apt -y install micro-httpd

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

sudo aptitude install micro-httpd

Summary

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