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.

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
Run phpize
/home/work/study/soft/php/bin/phpize
Install the basic package
yum install -y oniguruma oniguruma-devel
Run
./configure --with-php-config=/usr/local/php/bin/php-config make && make install
Modify the configuration information
vim /home/work/study/soft/php/lib/php.ini
Modify php.ini and add
extension_dir="/home/work/study/soft/php/lib/php/extensions/no-debug-non-zts-20190902/" extension=mbstring.soto the configuration file
Restart the php-fpm service
pkill -9 php-fpm php-fpm
may report an error
No package 'oniguruma' found yum install -y oniguruma oniguruma-devel
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!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

WebStorm Mac version
Useful JavaScript development tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment





