wget http://cn2.php.net/distributions/php-5.4.38.tar.gz
tar zxf php-5.4.38.tar.gz
cd /ext/soap
find / -name phpize
/usr/bin/phpize
find / -name 'php-config'
./configure --with-php-config=/usr/bin/php-config --enable-soap
报错
configure: error: xml2-config not found. Please check your libxml2 installation.
重新安装
yum install libxml2
yum install libxml2-devel -y
find / -name "xml2-config"
./configure --with-php-config=/usr/bin/php-config --enable-soap
echo $?
make && make install
完事出现
Installing shared extensions: /usr/lib64/php/modules/
vi /etc/php.ini
extension_dir = "/usr/lib64/php/modules/"
extension = "soap.so"
/etc/init.d/php-fpm reload
tar zxf php-5.4.38.tar.gz
cd /ext/soap
find / -name phpize
/usr/bin/phpize
find / -name 'php-config'
./configure --with-php-config=/usr/bin/php-config --enable-soap
报错
configure: error: xml2-config not found. Please check your libxml2 installation.
重新安装
yum install libxml2
yum install libxml2-devel -y
find / -name "xml2-config"
./configure --with-php-config=/usr/bin/php-config --enable-soap
echo $?
make && make install
完事出现
Installing shared extensions: /usr/lib64/php/modules/
vi /etc/php.ini
extension_dir = "/usr/lib64/php/modules/"
extension = "soap.so"
/etc/init.d/php-fpm reload
phpinfo();
本文转自cloves 51CTO博客,原文链接:http://blog.51cto.com/yeqing/1981511