ZABBIX Forums  
  #1  
Old 08-12-2009, 03:39
mucknet mucknet is offline
Member
 
Join Date: Dec 2004
Location: San Jose, CA
Posts: 45
Default Zabbix 1.8 MBstring?

I'm trying a new install of zabbix 1.8, and during the pre requesite check, I'm getting a failure of: PHP MB String support

I was also getting a failure of PHP MB String overload until I changed php.ini to include: mbstring.func_overload = 2

I'm on CentOS 5.3, and in installed php-mbstring. Any suggestions on what I need to change to get zabbix to detect it?

[root@admin3-test zabbix]# rpm -qa | grep php
php-pdo-5.1.6-23.2.el5_3
php-cli-5.1.6-23.2.el5_3
php-mysql-5.1.6-23.2.el5_3
php-gd-5.1.6-23.2.el5_3
php-mbstring-5.1.6-23.2.el5_3
php-common-5.1.6-23.2.el5_3
php-5.1.6-23.2.el5_3
php-bcmath-5.1.6-23.2.el5_3
[root@admin3-test zabbix]#
__________________
Doug Peterson
Muck.Net
Reply With Quote
  #2  
Old 08-12-2009, 06:13
ryanknapper ryanknapper is offline
Junior Member
 
Join Date: Mar 2005
Posts: 11
Default

I'm having this same problem, also with CentOS. Everything tells me that mbstrings is installed and enabled, but the pre-req check won't clear me for takeoff.
Reply With Quote
  #3  
Old 08-12-2009, 08:54
watto watto is offline
Member
 
Join Date: Jun 2008
Location: SPb, Russia
Posts: 45
Send a message via ICQ to watto
Default

Same problem
Reply With Quote
  #4  
Old 08-12-2009, 09:34
watto watto is offline
Member
 
Join Date: Jun 2008
Location: SPb, Russia
Posts: 45
Send a message via ICQ to watto
Default

Its a problem with 2 functions, i'm comment them in:
grep "mb_" zabbix/include/locales.inc.php function_exists('mb_strlen') &&
function_exists('mb_strtoupper') &&
function_exists('mb_strpos') &&
function_exists('mb_substr'); # &&
# function_exists('mb_stristr') &&
# function_exists('mb_strstr');

And zabbix setup was done without problem.
I can't explain this - may be developers could?
Reply With Quote
  #5  
Old 08-12-2009, 09:39
mucknet mucknet is offline
Member
 
Join Date: Dec 2004
Location: San Jose, CA
Posts: 45
Default

Quote:
Originally Posted by watto View Post
Its a problem with 2 functions, i'm comment them in:
grep "mb_" zabbix/include/locales.inc.php function_exists('mb_strlen') &&
function_exists('mb_strtoupper') &&
function_exists('mb_strpos') &&
function_exists('mb_substr'); # &&
# function_exists('mb_stristr') &&
# function_exists('mb_strstr');

And zabbix setup was done without problem.
I can't explain this - may be developers could?
I commented out the entry in include/setup.inc.php which worked and got me past the installation screen.
__________________
Doug Peterson
Muck.Net
Reply With Quote
  #6  
Old 08-12-2009, 10:03
Alexei Alexei is offline
Zabbix developer, product manager
 
Join Date: Sep 2004
Location: Riga, Latvia
Posts: 5,156
Blog Entries: 11
Post

I confirm this problem. The problem exists only for PHP 5.0.x and 5.1.x. PHP 5.2 and later versions will work fine.

Removing or commenting these two lines is absolutely correct workaround as these functions are not used anywhere in the front-end.

Sorry for this problem.
__________________
Alexei Vladishev
Author of Zabbix, Product manager
Riga, Latvia
My Blog
Reply With Quote
  #7  
Old 08-12-2009, 10:10
yaap yaap is offline
Junior Member
 
Join Date: Aug 2009
Posts: 18
Default

As documentation says PHP version 5.2 or later is required.

How to install PHP 5.2.6 on Centos 5.3 ?

[root@zabbix ~]# rpm --import http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
[root@zabbix ~]# cd /etc/yum.repos.d
[root@zabbix ~]# wget http://dev.centos.org/centos/5/CentOS-Testing.repo
[root@zabbix ~]# yum --disablerepo=* --enablerepo=c5-testing update php

http://www.zabbix.com/documentation/...n/requirements
Reply With Quote
  #8  
Old 08-12-2009, 10:12
Alexei Alexei is offline
Zabbix developer, product manager
 
Join Date: Sep 2004
Location: Riga, Latvia
Posts: 5,156
Blog Entries: 11
Lightbulb

Quote:
Originally Posted by yaap View Post
As documentation says PHP version 5.2 or later is required.
Zabbix 1.8 requires PHP 5.0 or later. The documentation is not correct, we will review and fix it shortly.
__________________
Alexei Vladishev
Author of Zabbix, Product manager
Riga, Latvia
My Blog
Reply With Quote
  #9  
Old 08-12-2009, 10:22
watto watto is offline
Member
 
Join Date: Jun 2008
Location: SPb, Russia
Posts: 45
Send a message via ICQ to watto
Default

Quote:
Originally Posted by Alexei View Post
I confirm this problem. The problem exists only for PHP 5.0.x and 5.1.x.
Yes, I'm use PHP 5.1.6.
Reply With Quote
  #10  
Old 08-12-2009, 19:53
Treitor Treitor is offline
Junior Member
 
Join Date: Feb 2006
Posts: 14
Default Thank´s

Quote:
Originally Posted by yaap View Post
As documentation says PHP version 5.2 or later is required.

How to install PHP 5.2.6 on Centos 5.3 ?

[root@zabbix ~]# rpm --import http://dev.centos.org/centos/RPM-GPG-KEY-CentOS-testing
[root@zabbix ~]# cd /etc/yum.repos.d
[root@zabbix ~]# wget http://dev.centos.org/centos/5/CentOS-Testing.repo
[root@zabbix ~]# yum --disablerepo=* --enablerepo=c5-testing update php

http://www.zabbix.com/documentation/...n/requirements
This how-to work for me.


PHP version: 5.2.9 Ok
PHP Memory limit: 128M Ok
PHP post max size: 16M Ok
PHP max execution time: 300 sec Ok
PHP Timezone: America/Bahia Ok
PHP Databases support: MySQL Ok
PHP BC math support: yes Ok
PHP MB string support: yes Ok
PHP MB string overload: yes Ok
PHP Sockets support yes Ok
GD Version: bundled (2.0.34 compatible) Ok
Image formats: PNG Ok

Ok
__________________
=====================
Treitor
Brazil - RJ
-------------------
Helpers go to haven

=====================
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:38.