不重新编译php,增加动态模块(以mbstring模块为例)
2014-12-29 00:00
274 查看
本文参考: http://blog.chinaunix.net/uid-366408-id-116428.html
下载mbstring的源码包,php源码包里就有mbstring的源代码
解压php源码包,进入mbstring源码包
> cd /tmp/src/php-5.4.26/ext/mbstring/
开始安装第一步,--with-php-config指向的是php安装目录的php-config
> ./configure --with-php-config=/opt/software/php-5.4/bin/php-config
安装第二步
> make; make install
安装完成以后,mbstring.so文件就在php-config里指向的extension_dir里面
编辑php.ini文件,加入一行
extension=mbstring.so
重启apache服务器
> service httpd restart
yum install php-mbstring 然后重启apache
下载mbstring的源码包,php源码包里就有mbstring的源代码
解压php源码包,进入mbstring源码包
> cd /tmp/src/php-5.4.26/ext/mbstring/
开始安装第一步,--with-php-config指向的是php安装目录的php-config
> ./configure --with-php-config=/opt/software/php-5.4/bin/php-config
安装第二步
> make; make install
安装完成以后,mbstring.so文件就在php-config里指向的extension_dir里面
编辑php.ini文件,加入一行
extension=mbstring.so
重启apache服务器
> service httpd restart
yum install php-mbstring 然后重启apache
相关文章推荐
- LINUX下PHP编译添加相应的动态扩展模块so(不需要重新编译PHP,以openssl.so为例)
- 不重新编译PHP为php增加openssl模块的方法
- LINUX下PHP编译添加相应的动态扩展模块so(不需要重新编译PHP,以openssl.so为例)
- 不重新编译为PHP增加LDAP模块的支持
- 通过源码包php-5.4.9.tar.gz编译安装PHP之后,如何加载动态模块,不需要重新配置PHP
- 不重新编译PHP为php增加openssl模块的方法
- LINUX下PHP编译添加相应的动态扩展模块so(不需要重新编译PHP,以openssl.so为例)
- LINUX下PHP编译添加相应的动态扩展模块so(不需要重新编译PHP,以openssl.so为例)
- 不重新编译PHP为php增加openssl模块的方法
- 不重新编译为 PHP 增加 LDAP 模块
- 不重新编译PHP为php增加openssl.so模块
- php安装与重新编译模块
- 动态编译添加php模块
- 不重新编译php添加扩展模块
- 编译时向内核添加新设备 模块的方式动态的将驱动加入内核,但这种方式加入的驱动程序,当系统重新启动时, 还需要重新用模块的方式进行插入,如果是系统内常用的设备驱动采用这种方式进行加载, 就会很不方便。
- 转 通过phpize为php在不重新编译php情况下安装模块openssl
- 从给编译好的LAMP环境中的PHP添加Xdebug模块分析动态加载
- linux不重新编译php增加openssl扩展
- php编译添加相应的动态模块