Heim >php教程 >php手册 >服务器源码安装PHP 后如何安装mbstring扩展

服务器源码安装PHP 后如何安装mbstring扩展

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 19:59:391045Durchsuche

php的源码包在/home/tmp/sh/php-5.2.17/;php安装目录是/alidata/server/php 执行以下命令: # cd /home/tmp/sh/php-5.2.17/ext/mbstring/ # /alidata/server/php/bin/phpize # ./configure --with-php-config=/alidata/server/php/bin/php-config # make #



php的源码包在/home/tmp/sh/php-5.2.17/;php安装目录是/alidata/server/php

执行以下命令:
# cd  /home/tmp/sh/php-5.2.17/ext/mbstring/
# /alidata/server/php/bin/phpize
# ./configure --with-php-config=/alidata/server/php/bin/php-config
# make
# make install

执行完毕后在php.ini里增加extension=mbstring.so,并设置extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-2006061"

重启php-fpm. 会报错tarting php_fpm PHP Warning:  PHP Startup: Invalid library (maybe not a PHP library) 'mbstring.so'  in Unknown on line 0  done

把extension=mbstring.so去掉,

重启php-fpm就ok了。

ps:编译了新的 php模块进来后,不一定要增加extension的配置

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn