AWStats icon indicating copy to clipboard operation
AWStats copied to clipboard

upgrade v7.6 to v7.7 - Windows paths to plugins failed

Open AnthonyBe opened this issue 8 years ago • 0 comments

Was running AWStats 7.6 on Windows Server 2012 R2 and had the various Maxmind plugins installed. Copied the v7.7 files over the top and site started throwing error:

Error: Plugin init for plugin 'geoip' failed with return code: Error opening C:Perl64LibGeoGeoIP.dat at C:/Perl64/site/lib/Geo/IP/PurePerl.pm line 243. (A module required by plugin might be missing). 

Setup ('C:\inetpub\wwwroot\AWStats\cgi-bin/awstats.DefaultWebSite.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

Checked perms on the various GeoIP .dat files - all good. Even forced the IUSR account on all of them again. No change. Updated ActiveState Perl from 5.16 to 5.24 and updated all packages in PPM - no change. Updated PurePerl.pm from v1.25 to v1.26 - no change.

What fixed it was, in my awstats.conf file I had to change all the backslashes to forward-slashes in the paths to the Maxmind plugins, e.g.

LoadPlugin="geoip GEOIP_STANDARD C:\Perl64\Lib\Geo\GeoIP.dat" change to LoadPlugin="geoip GEOIP_STANDARD C:/Perl64/Lib/Geo/GeoIP.dat"

Being a Windows machine, I should not be using forward slashes in paths.

Any idea what changed in Awstats from 7.6 to 7.7 that would've caused this problem?

AnthonyBe avatar Jan 09 '18 07:01 AnthonyBe