Heim  >  Artikel  >  Backend-Entwicklung  >  安装php扩展模块之phpize_PHP教程

安装php扩展模块之phpize_PHP教程

WBOY
WBOYOriginal
2016-07-14 10:11:391003Durchsuche

安装php扩展模块之phpize

安装PHP的模块一个方式是加上相关参数重新编译PHP
一个是用到phpize,比如eaccelerator,memcache等,这个比较方便,不用重新编译PHP,也可以随时启用或停用

这里说下phpize的使用方法
在安装了PHP的系统里,都会有这个文件,在wdlinux的系统里,这个文件在
/www/wdlinux/php/bin/phpize

然后进到相应要编译的源码目录,再运行上述的phpize,就会生成相应的配置,再运行配置,编译就可完成

tar zxvf eaccelerator-0.9.6.1.tar.bz2
cd eaccelerator-0.9.6.1
/www/wdlinux/php/bin/phpize
./configure --with-php-config=/www/wdlinux/php/bin/php-config
make
make install

只要不出错,这样执行完后,模块也就安装完了
有一个可能需要做配置或设置
就可修改php.ini文件,如
vi /www/wdlinux/etc/php.ini

 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/477320.htmlTechArticle安装php扩展模块之phpize 安装PHP的模块一个方式是加上相关参数重新编译PHP 一个是用到phpize,比如eaccelerator,memcache等,这个比较方便,不用...
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