[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-users] php string issue

From: Simone Fantini
Subject: Re: [Jailkit-users] php string issue
Date: Thu, 23 Jun 2016 13:52:51 +0200

you are right, that was the issue. I have copied the righe encoding also to jail and it works like a charm

thank you

2016-06-17 22:58 GMT+02:00 Olivier Sessink <address@hidden>:
On 14-06-16 17:39, Simone Fantini wrote:
Hello, on a Debian Wheezy machine i have installed and enabled latest version of Jailkit. It is working great and i have the flexibility to fix issues in no time. Thanks Olivier!

Although, today my user just faced an issue. He is running Magento in the jail and i have enabled php5-fpm 

comment = the php interpreter and libraries
executables = /usr/bin/php
directories = /usr/lib/php5, /usr/include/php5, /usr/share/php, /usr/share/php5, /etc/php5, [B]/usr/share/zoneinfo[/B]
includesections = env

basic php commands are working great , but a module in magento return this issue

Fatal error:  Uncaught exception 'Zend_Validate_Exception' with message 'Validate class not found from basename 'StringLength'' in /home/gilmar/public_html/lib/Zend/Validate.php:244

it looks like some PHP class is not available in the jail. Look for a file called StringLength.php

i have created a php file:

echo iconv_strlen("Test iconv_strlen here", "ISO-8859-1");


if i run this with root user, outside the jail, i get:


if i run same file in jail i get:

PHP Notice:  iconv_strlen(): Wrong charset, conversion from `ISO-8859-1' to `UCS-4LE' is not allowed in /home/gilmar/strlen.php on line 2

Notice: iconv_strlen(): Wrong charset, conversion from `ISO-8859-1' to `UCS-4LE' is not allowed in /home/gilmar/strlen.php on line 2

any one can please identify the root cause and fix the issue?

you need encoding support in your jail. I'm not sure which directories are needed, so you'll need some trial and error:

I guess it will be /usr/share/i18n/charmaps/ but it could be /usr/lib/i386-linux-gnu/gconv/ or /usr/lib/x86_64-linux-gnu/gconv/


Jailkit-users mailing list

Simone Fantini
CTO Infrastrutture
Mob. +39 340 7015980  Email address@hidden

Tunda Srl
SS Padana Superiore 16-18, Centro Tessile Milano - Edificio Q3
20063 Cernusco s/Naviglio (MI) - Italy
Tel +39 02 92853907 Fax +39 02 92853909

CONFIDENTIALITY NOTICE: This message may contain confidential and/or privileged information. If you are not the intended recipient, please do not use its contents for any purpose, advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy.
NOTA CONFIDENZIALE: Questo messaggio può contenere informazioni confidenziali e/o riservate. Se lo avete ricevuto per errore, Vi preghiamo di non usarne il contenuto a nessun scopo, informare immediatamente il mittente rispondendo alla mail e cancellare il messaggio ed eventuali allegati, senza farne copia.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]