awstats
free real-time logfile analyzer
WWW CVSWeb GITHub-
Package versionawstats-7.9
-
MaintainerThe OpenBSD ports mailing-list
AWStats is a free powerful and featureful tool that generates
advanced web, streaming, ftp or mail server statistics, graphically.
This log analyzer works as a CGI or from command line and shows you
all possible information your log contains, in few graphical web
pages. It uses a partial information file to be able to process
large log files, often and quickly. It can analyze log files from
all major server tools like Apache log files (NCSA combined/XLF/ELF
log format or common/CLF log format), WebStar, IIS (W3C log format)
and a lot of other web, proxy, wap, streaming servers, mail servers
and some ftp servers.
+-----------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-----------------------------------------------------------------------
The configuration is prepared to produce reports for localhost.
To generate reports execute either on the command line or from cron:
# ${TRUEPREFIX}/awstats/wwwroot/cgi-bin/awstats.pl -config=localhost -update
To use awstats with nginx, create a symbolic link in the htdocs directory:
# ln -s ../awstats/wwwroot awstats
Add this configuration example to ${SYSCONFDIR}/nginx/nginx.conf:
location ~ ^/awstats/cgi-bin/(.+\.pl)(.*)$ {
fastcgi_pass unix:run/slowcgi.sock;
fastcgi_split_path_info ^/awstats/cgi-bin/(.+\.pl)(.*)$;
fastcgi_param SCRIPT_FILENAME ${TRUEPREFIX}/awstats/wwwroot/cgi-bin/$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
}
Enable and start nginx:
# rcctl enable nginx
# rcctl start nginx
Enable, set flags to disable chroot(2) and start slowcgi(8):
# rcctl enable slowcgi
# rcctl set slowcgi flags -p /
# rcctl start slowcgi
To access the reports for localhost point your browser to:
http://localhost/awstats/cgi-bin/awstats.pl?config=localhost
- www/p5-libwww