Run as uid=www-data in cron jobs so that generated files areĪccessible from CGI as well. Setup ('/etc/awstats/nf' file, web server or permissions) may be wrong.įallback to RTFM, from the README: As AWStats is used both as a CGI-script and offline, it is by default >From data in log file "/var/log/apache2/access.log".Įrror: Couldn't open server log file "/var/log/apache2/access.log" : Permission denied Setup A Cron Job To Automatically Update Your AWStats FrequentlyĪutomatically added to /etc/cron.d/awstats: #MAILTO=rootġ0 03 * * * So Cron runs all fine, but some errors: Error while processing /etc/awstats/nfĬreate/Update database for config "/etc/awstats/nf" by AWStats version 7.6 (build 20161204) If all looks good, we’ll automate the report generation. Now let’s check if it works, visit yoursite.abc/awstats/ # Header always set X-Frame-Options DENY Header always set X-Frame-Options SAMEORIGIN To activate the new configuration, you need to run: Reverse DNS lookup for ::1 not available without ipv6 plugin enabled. Phase 2 : Now process new records (Flush history on disk after 20000 hosts). Searching new records from beginning of log file. Phase 1 : First bypass old records, searching new record. $ sudo /usr/lib/cgi-bin/ -config=danten.io -update Create/Update database for config "/etc/awstats/nf" by AWStats version 7.6 (build 20161204)įrom data in log file "/var/log/apache2/access.log". ScriptAlias /awstats/ /usr/lib/cgi-bin/ Alias /awstats-icon/ /usr/share/awstats/icon/ Alias /awstatsclasses/ /usr/share/java/awstats/ Options None AllowOverride None # Apache 2.4 Require host 192.168.0.0/24 # Apache 2.2 Order allow,deny Then let’s look at the nf Apache Conf in /etc/apache2/conf-available/nf Pretty straight forward, make sure you add your SiteDomain etc. We move on to configure AWStats via the main configuration and the Apache-Conf. Installing AWStats on Debian 10 BusterĪs usual, installing stuff is easy in the Debian-Universe: Static reports can be created through a command line interface, and on-demand reporting is supported through a Web browser CGI program. Data is visually presented within reports by tables and bar graphs. AWStats parses and analyzes server log files, producing HTML reports. Oh, and it’s written in Perl! □ AWStats - Advanced Web StatisticsĪWStats is an open source Web analytics reporting tool, suitable for analyzing data from Internet services such as web, streaming media, mail, and FTP servers. AWStats has been around for more than 20 years, and it’s one of the pieces of WebWare that I still remember from back in the old days. install it on a Debian 10 Buster Linux server and see if that helps. Let’s dive into our apt-universe and check out our old friend For this, a simple reporting tool parsing the Apache logs, rendering these in HTML or XML would be perfectly sufficient. So we’d want something like this:Ĭonsidering that I’m not particularly keen on gathering too much data, more like keeping a basic overview of traffic. So then, what we gonna do for Webstats and Analytics?īuilding from scratch and with a privacy-by-design mindset, we’ll better avoid JavaScript, trackers and the like now is it. Now I realize that focusing on the bare essentials makes you far more effective and boosts your performance. Getting rid of all the clutter that a semi-bloated WordPress site brings to the table feels liberating. Including relaunches that is, such as this one, where I’ve been moving from WordPress to a minimalist static site based on Hugo. Yes, setting up a quick Matomo instance is indeed one of the first things that comes to (my) mind when launching a new site. AWStats: Advanced Web Statistics on Debian | danten.io danten.io Home About Contact Blog AWStats: Advanced Web Statistics on Debian
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |