參考
http://yaf.laruence.com/manual/yaf.install.html
首先要找到php的安裝目錄,執行info.php,查看php路徑
Configuration File (php.ini) Path /etc/php5/apache2
whereis phpize
/usr/bin/phpize
Cannot find config.m4. Make sure that you run /usr/local/bin/phpize in the top level source directory of the module
./configure --with-php-c/bin/php-config
pcre.h: No such file or directory
sudo apt-get install libpcre3-dev
make
sudo make install或
vi /ext/php5/apache2/php.ini
service apache2 restart