手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

php安装mbstring拓展

时间:2024-10-12 18:34:40

1、前面我们在学习了php的安装,这里还需要使用php的安装包。进入php安装包拓展目录,查看是否有mbstring文件夹

php安装mbstring拓展

2、登录服务器,依次输入以下命令:cd /home/vagrant/php-7.4.2/ext/mbstring/usr/local/php/bin/phpize./configure --with-php-config=/usr/local/php/bin/php-config提示“No package 'oniguruma' found”同学们请自行查找安装oniguruma的方法,我们这里不做讨论makemake testmake install

php安装mbstring拓展
php安装mbstring拓展

3、编译安装完毕,会在php拓展目录包生成一个so文件:

php安装mbstring拓展

4、打开php.ini文件,修改以下内容:;extension=mbstring 改成 extension=mbstring我的php使用的FPM模式,所以需要重启php-fpm

php安装mbstring拓展

5、打印phpinfo()查看是否成功安装mbstring拓展

php安装mbstring拓展
© 手抄报圈