yarekGmail
asked on
gentoo geoip installation
Hi experts,
I try to install the geoip extension through SSH on my gentoo server.
I did:
> emerge Geo-IP
: OK
> pecl install geoip
: OK
> geoiplookup www.bbc.co.uk
: gives me
GeoIP Country Edition: GB, United Kingdom
GeoIP City Edition, Rev 1: GB, N7, Tadworth, (null), 51.283298, -0.233300, 0, 0
GeoIP City Edition, Rev 0: GB, N7, Tadworth, (null), 51.283298, -0.233300
Seems fine !
Now I try to add this as php extension:
I added
> extension=/usr/local/php5/ lib/php/ex tensions/g eoip.so
to php.ini
and restatred apache with
> /etc/init.d/apache restart
BUT my phpinfo() does not contain any geoip library and
> <?
> var_dump(geoip_record_by_n ame('88.19 1.127.8')) ;
> ?>
Gives me error: Call to undefined function geoip_record_by_name()
Can someone help me to install geoip on gentoo ?
Thanks
I try to install the geoip extension through SSH on my gentoo server.
I did:
> emerge Geo-IP
: OK
> pecl install geoip
: OK
> geoiplookup www.bbc.co.uk
: gives me
GeoIP Country Edition: GB, United Kingdom
GeoIP City Edition, Rev 1: GB, N7, Tadworth, (null), 51.283298, -0.233300, 0, 0
GeoIP City Edition, Rev 0: GB, N7, Tadworth, (null), 51.283298, -0.233300
Seems fine !
Now I try to add this as php extension:
I added
> extension=/usr/local/php5/
to php.ini
and restatred apache with
> /etc/init.d/apache restart
BUT my phpinfo() does not contain any geoip library and
> <?
> var_dump(geoip_record_by_n
> ?>
Gives me error: Call to undefined function geoip_record_by_name()
Can someone help me to install geoip on gentoo ?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ip2location - http://www.ip2location.com/demo.aspx
maxmind - http://www.maxmind.com/app/locate_demo_ip
Geobytes - http://www.geobytes.com/iplocator.htm
hostip - http://www.hostip.info/dl/index.html