Home > php教程 > php手册 > php扩展安装mbstring

php扩展安装mbstring

WBOY
Release: 2016-06-06 19:58:24
Original
1146 people have browsed it

linux系统下扩展安装mbstring 1. 进入php的源码包的ext/mbstring目录 $ cd /home/php/ext/mbstring 2. 运行php安装目录下的phpize $ /usr/local/lib/php/bin/phpize 3. 在mbstring目录下编译mbstring $ ./configure --with-php-config=/usr/local/bin/php-co

linux系统下扩展安装mbstring

1. 进入php的源码包的ext/mbstring目录

$ cd /home/php/ext/mbstring

2. 运行php安装目录下的phpize

$ /usr/local/lib/php/bin/phpize

3. 在mbstring目录下编译mbstring

$ ./configure --with-php-config=/usr/local/bin/php-config

将编译好的mbstring.so文件拷贝到php的扩展文件夹中

4.编辑php.ini,在php.ini中添加

extension_dir=/usr/lib/php/modules,如果php.ini中指定了extension_dir,则不用在指定

extension=mbstring.so

5.重启apache

$ service httpd restart


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template