mlogc command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
mlogc: command not found
or when using sudo you get the following error message
sudo: mlogc: command not found
Solutions to mlogc: command not found
How To Fix mlogc: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu mlogc is provided by libapache2-mod-security2 package.
libapache2-mod-security2 is:
Modsecurity is an Apache module whose purpose is to tighten the Web application security. Effectively, it is an intrusion detection and prevention system for the web server.
At the moment its main features are:
- Audit log; store full request details in a separate file, including POST payloads.
- Request filtering; incoming requests can be analysed and offensive requests can be rejected (or simply logged, if that is what you want). This feature can be used to prevent many types of attacks (e.g. XSS attacks, SQL injection, …) and even allow you to run insecure applications on your servers (if you have no other choice, of course).
To fix this problem, we can install more using the command below.
sudo apt-get -y install libapache2-mod-security2
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libapache2-mod-security2.
sudo apt -y install libapache2-mod-security2
Or if you have aptitude installed you can use the following command.
sudo aptitude install libapache2-mod-security2
Summary
In this tutorial we learn how to fix mlogc command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.