PHP扩展--Yaf框架安装

安装/配置

编译安装

wge thttp://pecl.php.net/get/yaf-2.3.5.tgz
tar -zxvfyaf-2.3.5.tgz
cd yaf-2.3.5/
cd extension/
/usr/local/php-5.3.3/bin/phpize
./configure --with-php-config=/usr/local/php-5.3.3/bin/php-config
make
make install

修改php.ini文件

[yaf]
extension=yaf.so
yaf.environ       = develop
yaf.library       = /home/www/public_html/library
yaf.cache_config  = 0
yaf.forward_limit = 5

以上完成后重启apache,可以看到yaf扩展

如果出现报错

/usr/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory

安装下pear再重新编译

yum install pcre-devel
make clean




原文地址:https://www.cnblogs.com/linzhenjie/p/5485460.html