Discussion:
[TYPO3] cc_awstats and Geo::IP
Katja Lampela
17 years ago
Permalink
Hi all,
I would like to activate the country statistics (from which country the
visitor is) in awstats and I tried to activate geoip in
*awstats/awstats.conf* file. The conf file states: Perl modules
required: Geo::IP (from Maxmind).

My question as a quite novice in server business is: could this be
installed in the server (maybe by me) and where and would it be used by
this cc_awstats which seem to be independent of the server's awstats(?).

Thank you for any input!
- Katja
Loek Hilgersom
17 years ago
Permalink
Hi Katja,

You can store the GeoIP databases anywhere you like, just make sure you refer to
that location in the awstats.conf file.

Your awstats extension in TYPO3 works independent from other awstats
installations on your server, but of course they could share the same GeoIP
database. I think /usr/share/GeoIP is the default location on most linux servers.

Hth,
Loek
Post by Katja Lampela
Hi all,
I would like to activate the country statistics (from which country the
visitor is) in awstats and I tried to activate geoip in
*awstats/awstats.conf* file. The conf file states: Perl modules
required: Geo::IP (from Maxmind).
My question as a quite novice in server business is: could this be
installed in the server (maybe by me) and where and would it be used by
this cc_awstats which seem to be independent of the server's awstats(?).
Thank you for any input!
- Katja
Katja Lampela
17 years ago
Permalink
Thanks Loek,
I tried this but can't get it to work.
In local T3 *awstats/awstats.conf I have

LoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat"

and in the /usr/share/... I of course uploaded the GeoIP.dat file.

This brings the result:

*Error: Plugin load for plugin 'geoip' failed with return code: Error:
Can't locate Geo/IP/PurePerl.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4
/usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2
/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl .
/home/mysite/html/typo3conf/ext/cc_awstats/awstats/lib
/mysite/html/typo3conf/ext/cc_awstats/awstats/plugins) at (eval 4) line 1.

*Maybe I should try to fiddle with some local other awstats.conf file
which isn't under TYPO3..
- Katja
*
...
Loek Hilgersom
17 years ago
Permalink
Hi Katja,

It seems like you need to install the PurePerl module.
http://forum.maxmind.com/viewtopic.php?t=27
Post by Katja Lampela
/usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5
*Maybe I should try to fiddle with some local other awstats.conf file
which isn't under TYPO3..
That wouldn't make any difference at this point.
Post by Katja Lampela
- Katja
*
Cool! I don't think I ever kirjoittied before ;-)

Loek
Katja Lampela
17 years ago
Permalink
Hi L?k (would this be your real name? sorry if not)
This was a good link, tried it but didn't get it to work yet. My one
problem is I don't really know where to install the perl module. So I
installed it in a directory and referenced to it in the conf file and
changed also the path accordingly like the manual instructed and still
the error. Maybe I did something wrong anyway.
Well, as soon as I get time for this, I will dig into it again.
Thank you again very much for the help you "kirjoittied"!
- Katja
Post by Loek Hilgersom
Hi Katja,
It seems like you need to install the PurePerl module.
http://forum.maxmind.com/viewtopic.php?t=27
Post by Katja Lampela
/usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5
*Maybe I should try to fiddle with some local other awstats.conf file
which isn't under TYPO3..
That wouldn't make any difference at this point.
Post by Katja Lampela
- Katja
*
Cool! I don't think I ever kirjoittied before ;-)
Loek
Michael Niemann
17 years ago
Permalink
Hello,

first you need to install the perl module (just as you would with any other perl module).
Then you edit typo3conf/ext/cc_awstats/awstats/awstats.conf.
Add or remove comment from this line:
LoadPlugin="geoip GEOIP_STANDARD /usr/local/share/GeoIP/GeoIP.dat"

Of course you need to download the GeoIP.dat and change the path accordingly.
You can setup a chronjob to update this file monthly.

Hope it helps
Michael

Katja Lampela <katja.lampela at lieska.net> wrote: Hi all,
I would like to activate the country statistics (from which country the
visitor is) in awstats and I tried to activate geoip in
*awstats/awstats.conf* file. The conf file states: Perl modules
required: Geo::IP (from Maxmind).

My question as a quite novice in server business is: could this be
installed in the server (maybe by me) and where and would it be used by
this cc_awstats which seem to be independent of the server's awstats(?).

Thank you for any input!
- Katja
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english



---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Katja Lampela
17 years ago
Permalink
Hi Michael,
and thanks for your input - this is what I have tried as you may see in
the other posts.
You see, I don't know anything about perl modules, this is the first
I've ever heard of them. But I will try :)
- Katja
...
Michael Niemann
17 years ago
Permalink
Okay. So the interesting part is wether pearl is already installed and which operating system you are running it on.
You've probably been on that page already:
http://www.maxmind.com/app/perl

regards Michael

Katja Lampela <katja.lampela at lieska.net> wrote: Hi Michael,
and thanks for your input - this is what I have tried as you may see in
the other posts.
You see, I don't know anything about perl modules, this is the first
I've ever heard of them. But I will try :)
- Katja
...
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english



---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Loading...