AWStats on Fedora 45: Project Deprecated, Use GoAccess or Matomo Instead
AWStats is deprecated upstream. This guide explains its status on Fedora and sets up GoAccess as a maintained log analyser for Nginx on Fedora 45 and 44.
AWStats is no longer developed, so a new installation is hard to recommend. This guide explains where the project stands, what that means on Fedora, and how to get the same result (a password-protected HTML traffic report built from your Nginx access log) with GoAccess on Fedora 45 or 44. Fedora 28, the release many older tutorials target, reached end of life in 2019.
Status of AWStats
The AWStats repository carries a deprecation notice dated November 2025. It states that the project "is now deprecated and no longer actively developed" after 25 years, and recommends moving to Matomo Log Analytics. The last release is AWStats 8.0 from August 2025.
Fedora 43 and 44 and EPEL 9 still ship awstats 8.0, so sudo dnf install awstats works there, but nothing upstream will fix future bugs or security problems in a Perl CGI script that parses untrusted log data. At the time of writing, the Fedora package index lists no awstats build for Fedora 45. If you already run AWStats, keep it behind authentication and plan a move.
Choosing a replacement
| Tool | What it is | Good fit when |
|---|---|---|
| GoAccess | A single binary that reads access logs and writes an HTML report or shows a terminal dashboard. Packaged in Fedora. | You want what AWStats gave you: log-based statistics with no database and no JavaScript tag. |
| Matomo Log Analytics | A PHP and MySQL/MariaDB web application that imports logs with a Python script. The alternative AWStats itself recommends. | You want long-term history, segments, several users and optional JavaScript tracking. |
The steps below use GoAccess because it is the closest like-for-like replacement and needs nothing beyond Nginx.
Requirements
- Fedora 45 or 44 with Nginx serving your site and logging in the default
combinedformat to/var/log/nginx/access.log. - A user with
sudorights.
Install GoAccess
GoAccess is in the standard Fedora repositories. httpd-tools provides htpasswd for the password file.
sudo dnf install goaccess httpd-toolsGenerate the first report
Create a directory for the report under the default Nginx document root and a directory for the GoAccess database, then build the report:
sudo mkdir -p /usr/share/nginx/html/stats /var/lib/goaccess
sudo goaccess /var/log/nginx/access.log --log-format=COMBINED \
--persist --db-path=/var/lib/goaccess \
-o /usr/share/nginx/html/stats/index.html--persist stores the parsed data on disk so that later runs only add new log lines instead of starting from zero. If your site uses a different document root, write the report there instead.
Protect the report with a password
Traffic reports expose visitor IP addresses and referrers, so do not leave them public. Create a password file:
sudo htpasswd -c /etc/nginx/.htpasswd deployFedora's default server block includes every file in /etc/nginx/default.d/. Create /etc/nginx/default.d/stats.conf with this content (if you use your own server block, put the location inside it):
location /stats/ {
auth_basic "Statistics";
auth_basic_user_file /etc/nginx/.htpasswd;
}Test the configuration and reload Nginx:
sudo nginx -t
sudo systemctl reload nginxOpen http://example.com/stats/, sign in, and you should see the GoAccess dashboard with visitors, requested files, referrers, status codes and browsers.
Update the report every hour
A systemd timer keeps the report current. Create /etc/systemd/system/goaccess-report.service:
[Unit]
Description=Update the GoAccess report
[Service]
Type=oneshot
ExecStart=/usr/bin/goaccess /var/log/nginx/access.log --log-format=COMBINED --restore --persist --db-path=/var/lib/goaccess -o /usr/share/nginx/html/stats/index.htmlThen create /etc/systemd/system/goaccess-report.timer:
[Unit]
Description=Run the GoAccess report hourly
[Timer]
OnCalendar=hourly
Persistent=true
[Install]
WantedBy=timers.targetEnable the timer and check that it is scheduled:
sudo systemctl daemon-reload
sudo systemctl enable --now goaccess-report.timer
systemctl list-timers goaccess-report.timer--restore loads the saved data and --persist writes it back, so statistics keep accumulating after the access log is rotated.
If you prefer Matomo
Install Matomo like any PHP application, add your site in its interface and note the site ID. Matomo ships the importer in its own tree; run it against a log file:
python3 /path/to/matomo/misc/log-analytics/import_logs.py --url=https://matomo.example.com --idsite=1 /var/log/nginx/access.logThe Matomo documentation has a dedicated AWStats migration page that covers scheduling the import.
Frequently asked questions
Can I import my old AWStats data into GoAccess?
No. GoAccess builds its statistics from access logs only. If you still have the old rotated logs, pass them on the first run together with the current log and they are counted; otherwise keep the old AWStats pages as a static archive.
Does GoAccess read compressed rotated logs?
Yes, through a pipe: zcat /var/log/nginx/access.log-*.gz | goaccess --log-format=COMBINED -o report.html -. The trailing dash tells GoAccess to read standard input.
Is it safe to keep running the AWStats 8.0 package?
It keeps working, but it is frozen software. Restrict it to authenticated users, do not allow configuration through the URL, and treat it as something to retire rather than extend.
Does GoAccess need JavaScript on my pages or cookies?
No. Like AWStats, it only analyses the server's log files, so nothing is added to your pages and no cookie banner is needed for it.