[quote=piwiker]
Habe gerade mal testhalber die .htaccess angepasst.
Pfad zu GeoIP wird via phpinfo korrekt angezeigt, allerdings wird weiterhin bei GeoIP (PECL) nur das Land (trotz der city.dat) angezeigt…[/quote]
Richtig, denn die HE Server php.ini ist einer (Kunden) .htaccess vorrangig!
Und mit ini_set funktioniert es ebenfalls nicht. Das habe ich schon getestet.
[quote=capedfuzz]
[quote=dragonx86]
It’s not possible to fill this php setting into php and ship it into piwik (to prevent compilcated installation)?[/quote]
If you mean using ini_set to set it then no, since some shared hosts will disable it, and besides i’m sure some will not want to store the databases w/ Piwik (if that’s what you meant).
Btw, can you tell me what’s in your /etc/php/geoip/ directory? In our tests the PECL module would only work w/ the city database if it was named GeoIPCity.dat. It would be good to know if this is not always true.[/quote]
Quelle: 301 Moved Permanently
Wenn du folgendes Test-Script mal einsetzt:
<?php
ini_set('geoip.custom_directory','/tmp/');
$infos = geoip_db_get_all_info();
$info = array_shift($infos);
var_dump( $info['filename'] );
?>
Quelle: PHP :: Bug #61607 :: geoip.custom_directory gets ignored when set via ini_set
Die Zeile mit “ini_set” dann auch anpassen mit deinem …/piwik/misc/" Verzeichnins. Obwohl das eigentlich egal ist, denn wenn du dieses auskommentierst, wird auch folgendes ausgegegen:
string(26) "/usr/share/GeoIP/GeoIP.dat"
Dann wirst du:
- sehen, das die HE Geo DB hier liegt -> “/usr/share/GeoIP/GeoIP.dat”
und
- das diese nicht die für Piwik notwendige “GeoIPCity.dat” ( ~17,5 MB ) ist, sondern die wesentlich kleinere “GeoIP.dat” [ ~843 KB ).
OK, die Dateigröße zeigt das Script nicht an.
Aber hier siehst du es -> …/piwik/misc
Aufgrund der Größe der HE GeoIP.dat schließe ich daraus, das diese dann auch gar keine Einträge für die Stadt-Standortbestimmungen enthält.
Somit ist die obenstehende Aussage von Galizianer dann wohl auch richtig:
Ich habe heute bereits mit dem HE Support telefoniert und soll morgen eine Email Antwort dazu erhalten. Die stelle ich dann hier rein.