Error Opening File Geoip Dat Awstats
CentOS using yum, so this article looks at how to install AWStats on CentOS. The instructions below should also work on other Linux distributions that do not have an automatic way of installing AWStats. The first thing to do is to download AWStats from the AWStats Download Page on Sourceforge. If you have an RPM based Linux distribution, such as CentOS, Red Hat Enterprise Linux or Fedora, then you can get the RPM version; for non-RPM based distros you can instead get the .tar.gz version. As at the time of posting this article, the current version of AWStats is 6.7, as shown in the example wget downloads below. wget http://example.com/sourceforge/awstats/awstats-6.7-1.noarch.rpm OR wget http://example.com/sourceforge/awstats/awstats-6.7.tar.gz An an RPM based distribution, you would install AWStats using the command below, run either as root or with sudo. rpm -ivh awstats-6.7-1.noarch.rpm This installs AWStats to /usr/local/awstats. If you don't have an RPM based distribution, or prefer to extract AWStats to a different directory, then it's just a matter of downloading the .tar.gz file to the appropriate location and executing the following command: tar -zxf awstats-6.7.tar.gz AWStats is now installed, but you may need to make some minor modifications to the Apache configuration file in order to use it via a web browser. The AWStats Perl script has a .pl extension. By default on CentOS, only .cgi scripts are interpreted as CGI Scripts, so you'll need to add the .pl extension as a cgi-script. This can be done either gobally in the /etc/httpd/conf/httpd.conf file, or just for this AWStats installation. To make the change globally, open up the /etc/httpd/conf/httpd.conf file in your favourite text editor, either as root or using sudo, and change #AddHandler cgi-script .cgi to AddHandler cgi-script .cgi .pl You'll also need to add "Options ExecCGI" to the directory that the AWStats Perl files are located. This can
for AWStats, but they specify ppm packages only for ActivePerl versions 5.6 and 5.8. I had to dig google a bit to find the repositories for ActivePerl 5.10. I found the Geo-IP-PurePerl packages here. To install the x86 Perl Package: C:\>ppm install http://ppm4.activestate.com/MSWin32-x86/5.10/1000/B/BO/BORISZ/Geo-IP-PurePerl-1.24.ppmx Add the following line to awstats.yourwebsite.conf file:LoadPlugin="geoip GEOIP_STANDARD C:\Program Files\GeoIP\GeoIP.dat" After this, create a directory C:\Program Files\GeoIP and extract here the latest country database file, GeoIP.dat, from here. You have to grant the http://www.electrictoolbox.com/installing-awstats/ IUSR_ account read access to this file, otherwise you'll get the error message:Error: Plugin init for plugin 'geoip' failed with return code: Error opening c:\Program Files\GeoIP\GeoIP.dat at C:/Perl/site/lib/Geo/IP/PurePerl.pm line 183. (A module required by plugin might be missing). Setup ('C:\Inetpub\wwwroot\AWStats\cgi-bin/awstats.yourwebsite.conf' file, web server or permissions) may be wrong. Email ThisBlogThis!Share to TwitterShare to FacebookShare to http://www.thesysadminhimself.com/2009/12/installing-geoip-plug-in-for-awstats.html Pinterest Labels: awstats, iis, web No comments: Post a Comment Newer Post Older Post Home Subscribe to: Post Comments (Atom) Blog Archive ► 2014 (10) ► August (1) ► April (2) ► March (4) ► February (1) ► January (2) ► 2013 (29) ► September (3) ► August (10) ► March (1) ► February (9) ► January (6) ► 2012 (11) ► December (2) ► November (5) ► October (2) ► September (2) ► 2011 (7) ► April (1) ► March (6) ► 2010 (2) ► December (2) ▼ 2009 (3) ▼ December (3) Deleting a Windows Account on a TFS Installing the Geo::IP plug-in for AWStats when Ac... Making AWStats work with default IIS logging. Search This Blog Loading... About Me Levente Rög View my complete profile Labels SharePoint (16) linux (14) SharePoint 2013 (12) CentOS (10) SharePoint 2010 (9) Centos 6 (8) PowerShell (7) centreon (6) nagios (6) Windows (4) Windows Server 2012 (4) nagios-plugins (4) nagios-plugins-1.4.16 (4) web (4) JI
Jul 14, 2007. eugenevdm Silver Pleskian 0 Messages: 611 Likes Received: 0 Trophy https://talk.plesk.com/threads/geoip-plugin-for-awstats-broken.75421/ Points: 0 I need some help fixing my GeoIP plugin for http://blog.libero.it/Laoblog2/12348360.html AWStats. I'm getting this error: Error: Plugin init for plugin 'geoip' failed with return code: Error opening GeoIP.dat at C:/Program Files/SWsoft/Plesk/Additional/Perl/site/lib/Geo/IP/PurePerl.pm line 53. (A module required by plugin might be missing). Setup ('C:\Program Files\SWsoft\Plesk\Additional\AWStats\wwwroot\cgi-bin/awstats.sitename.com.conf' file, web server or permissions) may be wrong. Check config file, error opening permissions and AWStats documentation (in 'docs' directory). It used to work, but I suspect after a Plesk update that changed security permissions the plugin stopped working. Ideally I'd like some kind of test method for testing GeoIP. I've followed these instructions: http://www.maxmind.com/app/perl but still no difference. Any advice? eugenevdm, Jul 14, 2007 #1 (You must log error opening file in or sign up to reply here.) Show Ignored Content Share This Page Tweet Loading... Log in with Facebook Log in with Twitter Log in with Google Your name or email address: Do you already have an account? No, create an account now. Yes, my password is: Forgot your password? Stay logged in Plesk Forum Home Forum > Older Products Discussion > Older Panel Software Versions > Plesk for Windows - 8.x and Older > Go to plesk.com | documentation | community | knowledge base | feature requests | devblog Follow us on Facebook Twitter community forums Home Forum Forum Quick Links Search Forum Recent Posts Members Members Quick Links Notable Members Current Visitors Recent Activity Badges Badges Quick Links Badges Menu Search Search titles only Posted by Member: Separate names with a comma. Newer Than: Search this thread only Search this forum only Display results as threads Useful Searches Recent Posts More... Contact Us Help Home Top RSS iHax Community Terms and Rules iHax Community iHax Community
Cookie Policy Altro Profilo Blog Sito Foto Amici Profilo Blog Foto Sito Cupido Blocca Crea Menu - Home di questo Blog - Aggiungi ai preferiti FACEBOOK Area personale - Login Tag Tutti i tags acetoneiso2 addressbook akonadi anonimato apache api array audio autobundle awstats bulk Chinese cinese clock cn=config coherence contacts CPAN Damn Small Linux Debian Debian Wheezy desktop digikam dlna dropbox Drupal dsa Easytag espeak Etch fennec file flickr Freerunner gammu GeoIP gkrellm Gnome Music Player GoogleEarth grep gwenview https ibus ical ime interface iso kde KDE4 keyboard layout keyboard map kipiplugin_flickrexport.so kmail2 kubuntu Kubuntu 15.04 Kwin ldap ldapi ldapmodify ldapsearch Lenny linux Linux eezUPnP dlna UPnP java loop Lore Invasion lxde mandarino Mandriva Mandriva 2009 Mandriva 2010 Microdia microsd mirror monitor mount mozilla mpd Netvista M42 nvidia Open Suse 10.2 OpenGEU openldap OpenMoko Oracle 9i (9.2.0.4) password perl pinyin Plurk policykit postfix ppstream privacy quota raid raid1 rar regular expression rename root login rsa scim sddm SHR sid Skype slapd snapshot sparc ssl string systray t610 test totem Ubuntu vcard vi virtualbox vivid velvet vmdk vmware vmware esx wammu webcam Wheezy wicd wifi wired wireless wlan xargs xmms Ultime visite al Blog Creato da: taichung il 12/01/2011 LaoBlog Linux Openmoko Freerunner Mandriva Debian Ubuntu Mageia Android « Mandriva 2009.1 e driver...Wicd on OpenGEU » Awstats:Error Opening file GeoIP.dat....Can't call method "country_code_by_addr" Post n°10 pubblicato il 09 Settembre 2013 da taichungTag: awstats, Debian, GeoIP, perl Prima di partire per le vacanze ho smanettato un po' con Awstats sul mio webserver con Debian Lenny. Le statistiche mi piacciono, ma ero interessato a saperne di più sui visitatori del mio sito web, così ho scoperto l'esistenza di un plugin che mi permette di risalire alla città del visitatore.