make_combined_log2 command not found

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

Introduction

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

make_combined_log2: command not found

or when using sudo you get the following error message

sudo: make_combined_log2: command not found

Solutions to make_combined_log2: command not found

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

In Ubuntu make_combined_log2 is provided by libapache2-mod-log-sql package.

libapache2-mod-log-sql is:

mod_log_sql is a log module for Apache which logs all requests to a database.

Base package.

If you want to use make_combined_log and mysql_import_combined_log scripts you will need to install the perl package.

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

sudo apt-get -y install libapache2-mod-log-sql

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

You can also use apt command to install libapache2-mod-log-sql.

sudo apt -y install libapache2-mod-log-sql

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

sudo aptitude install libapache2-mod-log-sql

Summary

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