Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I enable mbstring extension on PHP 5, Fedora server

I need to add the mbstring extension to an install of PHP 5.2.6 on Apache/2.2.11 (Fedora). We have dynamic extensions enabled so I really think all I need is the .so file and .ini files, correct? Can I simply drop these files in and make it work or do I have to recompile PHP? If it's simply upload and go, where can I get the files I need?

like image 283
JFOX Avatar asked Jan 25 '11 17:01

JFOX


People also ask

How can I tell if Mbstring is enabled?

You can check it through phpinfo(). Search for the string "mbstring" in phpinfo page. If it is present means then mbstring is enabled or it is disabled.

What is Mbstring PHP extension?

Mbstring is an extension of php used to manage non-ASCII strings. Mbstring is used to convert strings to different encodings. Multibyte character encoding schemes are used to express more than 256 characters in the regular byte wise coding system.


1 Answers

Try yum install php-mbstring. You may then need to restart apache, e.g. /sbin/service httpd restart.

You can also use yum info "php-*" to find a list of other php packages available.

like image 190
Rup Avatar answered Nov 01 '22 18:11

Rup