Author Topic: [solved] PHP mbstring does not exist in Oracle Linux 7 repository  (Read 15606 times)

0 Members and 1 Guest are viewing this topic.

dlemp

  • Jr. Member
  • **
  • Posts: 3
Hello!

I'm trying to install the newest version of Mibew on Oracle Linux 7.  I'm using PHP 5.4.16.  I cannot, for the life of me, find the php_mbstring extension for this version of PHP!  I get the following message when going through the http://URLHERE/webim/install.php/install/check-requirements setup:


Follow the wizard to setup your database.

Correct the mistakes:
PHP mbstring extension is not loaded


Does anybody know how to either get the mbstring extension install, or get around this?

Thanks!
« Last Edit: May 25, 2016, 02:52:44 PM by dlemp »

scalior

  • Global Moderator
  • Native
  • *****
  • Posts: 106
  • Serve customers on mobile. Get Wurrd for Mibew app
    • Wurrd for Mibew
Re: PHP mbstring does not exist in Oracle Linux 7 repository
« Reply #1 on: May 23, 2016, 11:47:04 PM »
I mostly use Ubuntu linux, and I use the LAMP package which by default includes mbstring. I have not had to meddle with that manually, but my understanding is that the mbstring extension provides multibyte support. Don't think you can get around that since UTF-8 is a multibyte character encoding and by default most files are saved as UTF-8.

When I do a phpinfo on my system, I get the section shown below, which points that the mbstring extension is provided by the libmbfl library. This may be specific to ubuntu.

I believe Oracle Linux is based on the Redhat family (which also includes CentOS). I did some searching and came up with some links. Hopefully these point you the right direction.

http://stackoverflow.com/questions/10278561/how-to-install-php-mbstring-on-centos-6-2

https://linuxconfig.org/installation-of-missing-php-mbstring-on-rhel-7-linux



Code: [Select]
mbstring

Multibyte Support enabled
Multibyte string engine libmbfl
HTTP input encoding translation disabled
libmbfl version 1.3.2

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Multibyte (japanese) regex support enabled
Multibyte regex (oniguruma) backtrack check On
Multibyte regex (oniguruma) version 5.9.2

Directive Local Value Master Value
mbstring.detect_order no value no value
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input pass pass
mbstring.http_output pass pass
mbstring.http_output_conv_mimetypes ^(text/|application/xhtml\+xml) ^(text/|application/xhtml\+xml)
mbstring.internal_encoding no value no value
mbstring.language neutral neutral
mbstring.strict_detection Off Off
mbstring.substitute_character no value no value

dlemp

  • Jr. Member
  • **
  • Posts: 3
Re: PHP mbstring does not exist in Oracle Linux 7 repository
« Reply #2 on: May 24, 2016, 06:33:49 PM »
Thanks for the reply and the links!  Everything you said and assumed is correct, and I was afraid that mbstring is necessary to use Mibew.  When I do phpinfo on my system, I have three lines that mention Multibyte, and all are similar to this one:

Zend Multibyte Support   disabled

I have tried to follow the info in the second link that you posted.  I was able to install php70u along with php70u-mbstring, but I could not get it to work with Mibew.  I'm not sure where the incompatibly lies (with Mibew, Apache, PHP, etc.) but something wasn't working correctly.  I would also like to keep with the current PHP version supplied by yum, it makes updates way easier.

I'll keep searching for a solution, I'm just not sure that there's one out there that will work for our situation.

dlemp

  • Jr. Member
  • **
  • Posts: 3
Re: PHP mbstring does not exist in Oracle Linux 7 repository
« Reply #3 on: May 25, 2016, 02:52:06 PM »
Figured it out!  I found an updated CentOS php-mbstring that works with my Oracle Linux 7 install. 

It's on the page: https://www.rpmfind.net/linux/rpm2html/search.php?query=php-mbstring(x86-64)

Direct link: ftp://195.220.108.108/linux/centos/7.2.1511/updates/x86_64/Packages/php-mbstring-5.4.16-36.1.el7_2.1.x86_64.rpm