How To Use GeoIP2 (mmdb) Database With Perl

Published on Author gryzli

This article is the result of my struggles to properly use GeoIP v2 database within Perl.    TL;DR  The FASTEST way to use the database is by installing and utilizing the “MaxMind::DB::Reader::XS” perl module.  And here is a tiny example: use MaxMind::DB::Reader::XS ;  use Data::Dumper;  my $geoip_country = MaxMind::DB::Reader::XS->new( file => ‘/usr/share/GeoIP/GeoIP2-Country.mmdb’ ); print Dumper… Continue reading How To Use GeoIP2 (mmdb) Database With Perl

Centos 6 – Recompile Apache Suexec

Published on Author gryzli

By default Centos 6 has Apache (2.2.x) which comes with suexec preinstalled. The suexec module itself could be found here: /etc/httpd/modules/mod_suexec.so There is also a suexec wrapper binary, which is by default installed here: /usr/sbin/suexec   0. What is the problem with default suexec ? Imagine you want to activate Suexec for some of your… Continue reading Centos 6 – Recompile Apache Suexec

Yum – Usefull commands

Published on Author gryzli

Yum list package content without installing it yum install yum-utils repoquery –list packagename   Yum – Get info about a package # This will give you some summary info about a package called “package” yum info package This will result in something like this: [root@localhost ~]# yum info rpm Loaded plugins: langpacks, refresh-packagekit Installed Packages… Continue reading Yum – Usefull commands