AWSTATS Quickee - Install website statistics

Опубликовано: 18 Июнь 2026
на канале: TechHeart
706
3

Come along with TechHeart - we wanted to add some website statistics to the techheart.life website... so we did just that!! AWSTATS is a nice, easy to use, website statistics software - we'll show you how to add it to any website and give it basic password authentication so other users don't have access to your statistics!! Lets g0000000.

iNFOZ:

YouTube won't allow angled brackets; they are replaced with ( )'s:

awstats.conf:
ScriptAlias /awstats/ /usr/lib/cgi-bin/
Alias /awstats-icon/ /usr/share/awstats/icon/
Alias /awstatsclasses/ /usr/share/java/awstats/

(Directory "/usr/lib/cgi-bin/")
Options None
AllowOverride None
(IfModule mod_authz_core.c)
Apache 2.4
Require host 192.168.0.0/24
(/IfModule)
(IfModule !mod_authz_core.c)
Apache 2.2
Order allow,deny
Allow from 192.168.0.0/24
Allow from ::1
(/IfModule)
(/Directory)

awstats.example.com.conf:
Set the log file path:
LogFile="/var/log/apache2/example.com-access_log"

Set the domain name:
SiteDomain="tecadmin.net"

Set the aliases for the host:
HostAliases="example.com www.example.com"

Access awstats page:
https://example.com/awstats/awstats.p...

Add to /etc/apache2/sites-available/example.com.conf:
(Directory /usr/lib/cgi-bin/)
AuthType Basic
AuthName 'Private ScriptZzZ'
AuthUserFile '/etc/apache2/.htpasswd'
Require valid-user
(/Directory)

BuyMeACoffee @ https://buymeacoffee.com/techheart

Find us on Discord @   / discord  

techheart.life