PDA

View Full Version : Geo IP Pure Perl


Julius95
08-08-2013, 12:08
I installed it but I still need help with this
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Q: I'm getting errors with Geo::IP::PurePerl. What is it? What does it require?
Q: The users country flags do not work, I only get the default flags, why?

ERROR: GeoIP method set to binary file lookup but Geo::IP:urePerl module NOT FOUND

That's the error I get[/B]

A: HlstatsX:CE has the option of allowing country flags. It requires certain programs in order for this to work. Geo::IP::PurePerl is such a package and can be installed in a different of ways:

Via CPAN
Again go to a linux command line. Do the following as root:
Code:
cpan
install Geo::IP::PurePerl
It should now be installed.

[B]I have installed it but I don't get the last part... execute etc... I'm getting confused what am I going to do exactly and write exactly in which files?

After installing Geo::IP::PurePerl you will need to set the method you are going to use with the flags.
Go to the /scripts/GeoLiteCity/ directory, and execute the file called "install_binary.sh". It might be nessecary to chmod the file to +x (execute) before you will be able to run it. This will download the GeoLiteCity.dat.

Now the only thing left is to go to your stats website, login as admin, choose "HLstatsX:CE Settings", browse down to "award settings" and select "GeoIP lookup via binary file" option. Restart the daemon afterwards!

Walliski
08-08-2013, 17:33
I suppose you are running linux?

To install the Perl modules required:


cpan
install GEo::IP:PurePerl
quit


To install the binary files needed:

cd scripts/GeoLiteCity/ #Changes folder to the GeoLiteCity folder, change to correct one
chmod +x install_binary.sh #Makes the install_binary.sh file runnable
./install_binary.sh #Runs the file so that it will download the files needed for country lookup
After you have done this, just make the website use "binary data" for geo lookup as instructed...

More questions?

Julius95
08-09-2013, 01:58
I suppose you are running linux?

To install the Perl modules required:


cpan
install GEo::IP:PurePerl
quit


To install the binary files needed:

cd scripts/GeoLiteCity/ #Changes folder to the GeoLiteCity folder, change to correct one
chmod +x install_binary.sh #Makes the install_binary.sh file runnable
./install_binary.sh #Runs the file so that it will download the files needed for country lookup
After you have done this, just make the website use "binary data" for geo lookup as instructed...

More questions?

No I run windows.

How do I install binary files? that seemed complicated

XAFAfterShock
08-09-2013, 03:48
you need to go into your stats folder and create a folder named perl then inside that folder create another folder named GeoLiteCity and in that folder is where the GeoLiteCity.dat goes, after that restart your daemon.

Walliski
08-09-2013, 04:09
Installing Binary files on Windows:
Download this file:

(http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz)http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz

unzip it with WinRAR / 7zip or whatever program you use. Place the GeoLiteCity.dat file into the scripts/GeoLiteCity folder, and you are done.

Try restarting the daemon after this, and see if it works.

Julius95
08-09-2013, 10:17
I still can't manage to install the binary files

a video tutorioual would be nice or something or pictures, what programs needed on a windows machine?

here is my site


http://julius95.zapto.org/stats/hlstats.php?game=tf

seemse some pictures are missing like the Server load graph

and here at my profile
http://julius95.zapto.org/stats/hlstats.php?mode=playerinfo&player=15

forum signature seems to not work :/

Walliski
08-10-2013, 04:24
Cant really help you with the graphs and stuff, since I dont know how it works in Windows, since I am using Linux myself, and have never had a Windows server... :(

Rytis
08-10-2013, 06:54
Server load graph: http://julius95.zapto.org/stats/show_graph.php?type=1&game=tf&width=870&height=200&bgcolor=282828&color=FFFFFF Just read the error and google it.
Signatures are not working, because the rewrite rules are not set

XAFAfterShock
08-10-2013, 13:47
I still can't manage to install the binary files

a video tutorioual would be nice or something or pictures, what programs needed on a windows machine?

here is my site


http://julius95.zapto.org/stats/hlstats.php?game=tf

seemse some pictures are missing like the Server load graph

and here at my profile
http://julius95.zapto.org/stats/hlstats.php?mode=playerinfo&player=15

forum signature seems to not work :/

sent you a pm