[Eisfair] mod_geoip funktioniert nicht :-(

Uwe Kunze u.kunze.sdh at t-online.de
So Jan 18 12:02:51 CET 2015


> Hast Du das Paket php5_ccpp installiert?
> gibt es in den apache logfiles etwas aufgeregtes zu sehen?

Jetzt funktionierts mit Piwik... aber warum genau, weiß ich nicht.
Die einzige Änderung: Ich habe die Datenbank GeoIPv6.dat noch mit in die 
config aufgenommen.
Das kleine php-Testscript zeigt aber nach wie vor keine Ergebnisse an:

<html>
<body>
<?php
$country_code = apache_note("GEOIP_COUNTRY_CODE");
$country_name = apache_note("GEOIP_COUNTRY_NAME");
$city_name = apache_note("GEOIP_CITY");
$region = apache_note("GEOIP_REGION");
$metro_code = apache_note("GEOIP_DMA_CODE");
$area_code = apache_note("GEOIP_AREA_CODE");
$latitude = apache_note("GEOIP_LATITUDE");
$longitude = apache_note("GEOIP_LONGITUDE");
$postal_code = apache_note("GEOIP_POSTAL_CODE");

echo 'Country code: '.$country_code.'<br>';
echo 'Country name: '.$country_name.'<br>';
echo 'City name: '.$city_name.'<br>';
echo 'Region: '.$region.'<br>';
echo 'Metro code: '.$metro_code.'<br>';
echo 'Area code: '.$area_code.'<br>';
echo 'Latitude: '.$latitude.'<br>';
echo 'Longitude: '.$longitude.'<br>';
echo 'Postal code: '.$postal_code.'<br>';
?>
</body>
</html>


Mehr Informationen über die Mailingliste Eisfair