Last night, we had snow for the first time this winter and still now it’s snowing though a very light snowfall. Before getting to the main subject, I’ll introduce this tweet. Wow! Awesome! Cute!
Getting into the main subject, I updated AWStats from 7.3 to 7.4. See ChangeLog and current features. Before this, I upgraded from ActivePerl-5.20.2.2002 to ActivePerl-5.22.1.2201. After upgrading PERL, I had a warning ‘Unescaped left brace in regex is deprecated, passed through in regex’ for some lines about awstats.pl(v.7.3). The PERL gave the same warning to me when I updated to AWStats7.4. This is just a warning, so the script works well now. But, to fix this waring is easy. I inserted a to the each line.
$LogFormatString =~ s/"%
{Referer}i"/%refererquot/g;
$LogFormatString =~ s/"%
{User-Agent}i"/%uaquot/g;
$LogFormatString =~ s/%
{mod_gzip_input_size}n/%gzipin/g;
$LogFormatString =~ s/%
{mod_gzip_output_size}n/%gzipout/g;
$LogFormatString =~ s/%
{mod_gzip_compression_ratio}n/%gzipratio/g;
$LogFormatString =~ s/(%
{ratio}n)/%deflateratio/g;
If you install AWStats at the first time, see AWStats Installation, Configuration and Reporting.
On the new awstats.model.conf, the following directives are added.
# By default, AWStats only records info on 404 'Document Not Found' errors. # At the cost of additional processing time, further info pages can be made # available by adding codes below. # Change : Effective for new updates only # Example: "403 404" # Default: "404" # TrapInfosForHTTPErrorCodes = "400 403 404"
# Show http error page details # Context: Web, Streaming # Default: R, Possible column codes: RH ShowHTTPErrorsPageDetail=R
# PLUGIN: GeoIP6 # REQUIRED MODULES: Geo::IP or Geo::IP::PurePerl (from Maxmind, version >= 1.40) # PARAMETERS: [GEOIP_STANDARD | GEOIP_MEMORY_CACHE] [/pathto/geoipv6.dat[+/pathto/override.txt]] # DESCRIPTION: Builds a country chart and adds an entry to the hosts # table with country name # works with IPv4 and also IPv6 addresses # Replace spaces in the path of geoip data file with string "%20". # #LoadPlugin="geoip6 GEOIP_STANDARD /pathto/GeoIPv6.dat"
The recipe for sweet potato yōkan that I often made this fall. Ingredients Sweet potato…
After a long time, when I checked broken links and fixed them, I got an…
I made a box, so I prepare the contents. Theme and Plugins. The theme is…
Hehe, it's been almost a year since my last post. I received a notification email…
About a week ago, I finally started to renew my sites, which I had been…
This website uses cookies.
View Comments
Thanks so much for those code changes. I've been trying to fix that for a while
Hi Mike!
To hear the post helped you was my pleasure.