Linux-centos7 Installing PHP Extensions

Source: Internet
Author: User
Keywords Php centos7 linux
Today, when using PHP in Centos7, the mbstring extension is not installed, so use Yum instll php-mbstring
After installation, it is found that the/etc/php.d/directory has mbstring.iniFile and there's a line inside. extension=mbstring.so
/usr/lib64/php/modules/In the catalogue there are also mbstring.soFile, after restarting Nginx found phpinfoThere is still no mbsting extension, why? Is it a step that I'm missing?
The same directory of Curl and other extensions are such a configuration, why loaded in, and the newly installed mbstring load do not come in?

PS: It has been solved. The reason is that there is no restart php-fpm after installation, it is useless to restart Nginx. Thank you!

Reply content:

Today, when using PHP in Centos7, the mbstring extension is not installed, so use Yum instll php-mbstring
After installation, the/etc/php.d/directory is found and there is a row in it. mbstring.iniextension=mbstring.so
/usr/lib64/php/modules/Directory also has mbstring.so files, after restarting Nginx found that there phpinfo is no mbsting extension, why? Is it a step that I'm missing?
The same directory of Curl and other extensions are such a configuration, why loaded in, and the newly installed mbstring load do not come in?

PS: It has been solved. The reason is that there is no restart php-fpm after installation, it is useless to restart Nginx. Thank you!

PHP.ini plus extension=mbstring.so.

Try setting the extension_dirin php.ini and set it to absolute path.

Some people have done the same thing, but I'm not sure if it's the same as the main problem.

sudo yum remove php-commonsudo yum install php-mbstring
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.