Home >Backend Development >PHP Tutorial > phpize编译动态扩充模块

phpize编译动态扩充模块

WBOY
WBOYOriginal
2016-06-13 13:07:51729browse

phpize编译动态扩展模块

上周配置服务器,安装php时没有安装memcache,就用phpize编译动态扩展模块

?

#tar zxvf memcache-2.2.5.tgz
#cd memcache-2.2.5/
#/usr/local/php/bin/phpize//这里有可能会报错,根据报错内容添加相应的库
#./configure --with-php-config=/usr/local/php/bin/php-config
make && make install

?

在php.ini中添加对应的模块

?

extension_dir = "/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/"
extension = "memcache.so"

?

重启服务器? OK~

Statement:
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