|
From: | Simone Fantini |
Subject: | Re: [Jailkit-users] php string issue |
Date: | Thu, 23 Jun 2016 13:52:51 +0200 |
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
[php]comment = the php interpreter and librariesexecutables = /usr/bin/phpdirectories = /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:
<?phpecho iconv_strlen("Test iconv_strlen here", "ISO-8859-1");
?>
if i run this with root user, outside the jail, i get:
"22"
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/
Olivier
_______________________________________________
Jailkit-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/jailkit-users
[Prev in Thread] | Current Thread | [Next in Thread] |