• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Piwik Geoip Configuration

Kingsley

Silver Pleskian
Hello;

I need help with setting up the geoip location for my piwik analytics. i have added the below

Code:
geoip.custom_directory = /var/www/vhosts/kraftysprouts.com/analytics.kraftysprouts.com/piwik/misc

to

Code:
/opt/plesk/php/7.0/etc/php.d/geoip.ini

now the site won't open, it generates HTTP ERROR 500

Thanks for your help
 
Code:
[Tue Nov 15 20:51:18.885268 2016] [proxy_fcgi:error] [pid 6810:tid 139930495870720] [client 154.120.107.176:44880] AH01071: Got error 'PHP message: PHP Fatal error:  Cannot redeclare geoip_country_code_by_addr() in /var/www/vhosts/kraftysprouts.com/analytics.kraftysprouts.com/piwik/libs/MaxMindGeoIP/geoip.inc on line 1709\n', referer: https://analytics.kraftysprouts.com/piwik/index.php?module=CoreAdminHome&action=generalSettings&idSite=1&period=day&date=yesterday
[Tue Nov 15 20:51:20.915220 2016] [proxy_fcgi:error] [pid 6811:tid 139930479085312] [client 154.120.107.176:44892] AH01071: Got error 'PHP message: PHP Fatal error:  Cannot redeclare geoip_country_code_by_addr() in /var/www/vhosts/kraftysprouts.com/analytics.kraftysprouts.com/piwik/libs/MaxMindGeoIP/geoip.inc on line 1709\n'
[Tue Nov 15 20:51:22.689745 2016] [proxy_fcgi:error] [pid 6810:tid 139930462299904] [client 154.120.107.176:44896] AH01071: Got error 'PHP message: PHP Fatal error:  Cannot redeclare geoip_country_code_by_addr() in /var/www/vhosts/kraftysprouts.com/analytics.kraftysprouts.com/piwik/libs/MaxMindGeoIP/geoip.inc on line 1709\n'
[Tue Nov 15 20:52:23.144840 2016] [proxy_fcgi:error] [pid 6811:tid 139930495870720] [client 154.120.107.176:44990] AH01071: Got error 'PHP message: PHP Fatal error:  Cannot redeclare geoip_country_code_by_addr() in /var/www/vhosts/kraftysprouts.com/analytics.kraftysprouts.com/piwik/libs/MaxMindGeoIP/geoip.inc on line 1709\n', referer: https://analytics.kraftysprouts.com/piwik/index.php?module=CoreAdminHome&action=generalSettings&idSite=1&period=day&date=yesterday
 
Back
Top