Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to install mbstring extension in CENTOS7

Shulou Source: shulou.com Published: 2022-06-01 17:45:32 10月03日 Update

This article will explain in detail how to install the mbstring extension in CENTOS7. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

1.Uncaught Error: Call to undefined function mb_strlen ()

When the above error occurs, it means that we have not installed the mbstring extension.

two。 Enter the PHP installation directory

Cd / temp001/php-7.1.0/ext/mbstring

3. Launch the phpize (/ usr/local/bin/phpize or / usr/local/php7-abel001/bin/phpize) command to install the php extension

4../configure-- with-php-config=/usr/local/php7-abel001/bin/php-config according to your actual installation directory

5. Compile make & & make install

6. At this point, mbstring.so has already been generated in the / usr/local/php7-abel001/lib/php/extensions/no-debug-non-zts-20160303/ directory.

7.echo 'extension=mbstring.so' > > / usr/local/php7-abel001/lib/php.ini enable mbstring extension

8.nginx-s reload, killall php-fpm,. / php-fpm reload php-fpm

The 9.php-m command can see which extensions have been enabled; php-- ini can see some configuration information of php

So far, the mbstring extension has been successfully installed!

This is the end of this article on "how to install mbstring extensions in CENTOS7". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.

Tags: Catalogue article command more good practical successful information content such as above actual article knowledge so far error Laian reference help related generate Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Information macOS MariaDB Apple