PHP中yaf扩展的安装
1. 下载
wget http://pecl.php.net/get/yaf-3.0.5.tgz
2. 解压
tar -zxvf yaf-3.0.5.tgz
3.进入文件夹
cd yaf-3.0.5
4.查看文件夹文件
ls
5. phpize侦测环境生成configure
phpize
** phpize: command not found 报错时运行
yum install php-devel
6. 生成makefile
./configure --with-php-config=/usr/local/php/bin/php-config
** /usr/local/php/bin/php-config 更换自己的php-config路径
7. 编译安装
make && make install
8. 配置php.ini
[Yaf]
extension = yaf.so
yaf.environ = "product"
9.配置yaf的rewrite规则
根据自己的环境百度配置rewrite规则
10.重启Nginx、Apache和PHP