haserl command not found

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

Introduction

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

haserl: command not found

or when using sudo you get the following error message

sudo: haserl: command not found

Solutions to haserl: command not found

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

In Ubuntu haserl is provided by haserl package.

haserl is:

Haserl is a CGI wrapper that allows PHP-style programming in Lua or a POSIX-compliant shell. It is very small, so it can be used in embedded environments, or where something like PHP is too big.

It combines three features into a small CGI engine:

  • It parses POST and GET requests, placing form-elements into the environment as name=value pairs for the CGI script to use. This is somewhat similar to the uncgi wrapper.
  • It opens a shell, and translates all text into printable statements. All text within <% … %> constructs is passed verbatim to the shell. This is somewhat similar to how PHP scripts are parsed.
  • It can be set up to drop its permissions to the owner of the script, giving it some of the security features of suexec or cgiwrapper.

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

sudo apt-get -y install haserl

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

You can also use apt command to install haserl.

sudo apt -y install haserl

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

sudo aptitude install haserl

Summary

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