php yaf模块安装

1.下载yaf模块,3.0以上需要php7支持

cd /usr/local/src/
wget http://pecl.php.net/get/yaf-2.3.5.tgz
tar -zxvf yaf-2.3.5.tgz
cd yaf-2.3.5
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make
make install

 2.增加yaf扩展模块

vim /usr/local/php/lib/php.ini
# 增加
extension = yaf.so

# 时区修改
date.timezone = PRC

# 增加yaf的命名空间方式的支持
[yaf]
yaf.use_namespace = on
yaf.environ = 'develop'

 

 

http://yaf.laruence.com/manual/yaf.ini.html

http://yaf.laruence.com/manual/yaf.ini.html

posted @ 2017-05-26 14:45  sunmmi  阅读(215)  评论(0)    收藏  举报