sudo apt-get update
apt-get install php-soap
php-config --configure-options --enable-soap
php -i | grep extension_dir
extension='/usr/lib/php/modules/soap.so'
yum install bz2 bz2-devel
./configure --with-php-config=/usr/local/php5/bin/php-config
make
make test
make install
vim /etc/php.ini ##加入extension=bz2.so