Today, when Centos7 was used to use php, it was found that the mbstring extension was not installed. Therefore, after being installed with yuminstllphp-mbstring, it was found that etcphp. the d directory already has mbstring. the INI file also contains a line of extensionmbstring. sousrlib64phpmodules directory... today, when Centos7 was used in php, it was found that the mbstring extension was not installed, so yum instll php-mbstring was used.
After installation, you can find that the/etc/php. d/directory already exists.
mbstring.ini
There is also a line in the file.
extension=mbstring.so
/usr/lib64/php/modules/
The directory also has
mbstring.so
File, restart nginx and find
phpinfo
There is still no mbsting extension in it. Why? Which of the following steps is missing?
The curl and other extensions under the same directory are configured in this way. Why is it loaded, but the newly installed mbstring cannot be loaded?
PS: solved. The reason is that php-fpm is not restarted after installation, and it is useless to restart nginx. Thank you!
Reply content:
Today, when Centos7 was used in php, it was found that the mbstring extension was not installed, so yum instll php-mbstring was used.
After installation, you can find that the/etc/php. d/directory already exists.mbstring.ini
There is also a line in the file.extension=mbstring.so
/usr/lib64/php/modules/
The directory also hasmbstring.so
File, restart nginx and findphpinfo
There is still no mbsting extension in it. Why? Which of the following steps is missing?
The curl and other extensions under the same directory are configured in this way. Why is it loaded, but the newly installed mbstring cannot be loaded?
PS: solved. The reason is that php-fpm is not restarted after installation, and it is useless to restart nginx. Thank you!
Add extension = mbstring. so to php. ini.
Try Setting in php. iniExtension_dir.
Some people solve similar problems in this way, but I'm not sure if it is the same as the case of the subject.
sudo yum remove php-commonsudo yum install php-mbstring