Amol Deshpande
Amol Deshpande

Reputation: 23

Piwik installation using php

I have an below error while installing piwik web analytic in to my site

You need to configure and rebuild PHP with "iconv" support enabled, --with-iconv.

Please guide me.

Upvotes: 2

Views: 1607

Answers (2)

Nicolas
Nicolas

Reputation: 6494

Edit your /etc/php/php.ini file and uncomment

extension=iconv.so
...
[iconv]
iconv.input_encoding = ISO-8859-1
iconv.internal_encoding = ISO-8859-1
iconv.output_encoding = ISO-8859-1

Then restart your web server

Upvotes: 1

Andrii Radyk
Andrii Radyk

Reputation: 394

You need to install php5-iconv extension, check etc/php/extensions.ini on "extension=iconv.so" and restart apache.

For openSUSE/Suse:

sudo zypper in php5-iconv

For FreeBSD:

cd /usr/ports/converters/php5-iconv/
sudo make all install clean

For Ubuntu it should be part of the main php package.

For RHEL/Fedora/CentOS it should be present in php-common:

sudo yum install php-common

Upvotes: 4

Related Questions