You are not logged in.

#1 2013-07-16 05:51:22

XenGi
Member
From: berlin, germany, europe, earth
Registered: 2013-02-23
Posts: 35
Website

[SOLVED] Installing Piwik on Arch with nginx. Setup fails at php iconv

Hi I installed piwik from aur and wanted to configure it. My nginx runs fine and serves php files.
Now when I start the piwik wizard it checks for iconv and can't find it. I uncommented it in the php.ini but that didn't do anything.

I have no idea if this is a bug in piwik or I forget something to activate iconv. Has anyone an idea?

I testet this script:

<?php
$text = "This is the Euro symbol '€'.";
echo 'Original : ', $text, PHP_EOL;
echo 'TRANSLIT : ', iconv("UTF-8", "ISO-8859-1//TRANSLIT", $text), PHP_EOL;
echo 'IGNORE   : ', iconv("UTF-8", "ISO-8859-1//IGNORE", $text), PHP_EOL;
echo 'Plain    : ', iconv("UTF-8", "ISO-8859-1", $text), PHP_EOL;
?>

But this is the result:

2013/07/16 08:02:51 [error] 29582#0: *1 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to undefined function iconv() in /srv/http/test.php on line 5" while reading response header from upstream, client: 212.37.175.179, server: censoredserver.com, request: "GET /test.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "piwik.xengi.de"

EDIT:

Some magical hands did $something and now it works. I have no idea why.

Last edited by XenGi (2020-07-18 00:15:27)


# got root?█

Offline

#2 2013-07-19 00:15:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Installing Piwik on Arch with nginx. Setup fails at php iconv

https://wiki.archlinux.org/index.php/Fo … ow_to_Post

when a solution is found, mark your thread as solved by editing the first post and prepending the tag [SOLVED] to the title in the "Subject" field.
Note that you should avoid using [CLOSED], which is instead used by the system to mark a thread which is no longer accessible for new posts.

Offline

Board footer

Powered by FluxBB