awstats command not found

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

Introduction

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

awstats: command not found

or when using sudo you get the following error message

sudo: awstats: command not found

Solutions to awstats: command not found

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

In Ubuntu awstats is provided by awstats package.

awstats is:

Advanced Web Statistics (AWStats) is a powerful web server logfile analyzer written in perl that shows you all your web statistics including visits, unique visitors, pages, hits, rush hours, search engines, keywords used to find your site, robots, broken links and more. Gives more detailed information and better graphical charts than webalizer, and is easier to use. Works with several web server log format as a CGI and/or from command line. Supports more than 30 languages.

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

sudo apt-get -y install awstats

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

You can also use apt command to install awstats.

sudo apt -y install awstats

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

sudo aptitude install awstats

Summary

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