Home > Backend Development > PHP7 > How to install mbstring extension in php7

How to install mbstring extension in php7

藏色散人
Release: 2023-02-18 06:32:01
Original
3712 people have browsed it

How to install the mbstring extension in php7: first enter the source package "ext/mbstring" directory; then run phpize and install the basic package; then modify the configuration information; and finally restart the php-fpm service.

How to install mbstring extension in php7

The operating environment of this article: Windows7 system, PHP7.1 version, DELL G3 computer

How to install the mbstring extension in php7?

PHP7.4 Install Mbstring extension

Installation steps

Enter the ext/mbstring directory under the source code package

cd /home/work/study/softpackage/php-7.4.4/ext/mbstring
Copy after login

Run phpize

/home/work/study/soft/php/bin/phpize
Copy after login

Install the basic package

yum install -y oniguruma oniguruma-devel
Copy after login

Run

./configure --with-php-config=/usr/local/php/bin/php-config
make && make install
Copy after login

Modify the configuration information

vim /home/work/study/soft/php/lib/php.ini
Copy after login

Modify php.ini and add

extension_dir="/home/work/study/soft/php/lib/php/extensions/no-debug-non-zts-20190902/"
extension=mbstring.so
Copy after login
to the configuration file

Restart the php-fpm service

pkill -9 php-fpm
php-fpm
Copy after login

may report an error

No package 'oniguruma' found
yum install -y oniguruma oniguruma-devel
Copy after login

Recommended study: "PHP Video Tutorial"

The above is the detailed content of How to install mbstring extension in php7. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template