zeq912

1.下载php7.1.27源码包

cd /root & wget -O php7.1.27.tar.gz http://cn2.php.net/get/php-7.1.27.tar.gz/from/this/mirror

2.解压源码包

tar -xvf php7.1.27.tar.gz

3.进入目录

cd  php7.1.27

4.配置PHP安装以包含SOAP

./configure --enable-soap=shared

注意:
如果收到类似于以下内容的错误,则需要安装libxml2:

error: xml2-config not found. Please check your libxml2 installation

您可以通过yum存储库安装libxml2:

yum install libxml2-devel

5.编译构建

make

6.拷贝soap模块到现有的php目录中

cp modules/soap.so /usr/lib/php/20160303/soap.so

7.修改php.ini配置文件加入soap模块

extension='/usr/lib/php/20160303/soap.so'

8.重启php-fpm

/etc/init.d/php-fpm restart

分类:

技术点:

相关文章:

  • 2021-12-18
  • 2021-12-28
  • 2021-09-13
  • 2021-08-16
  • 2021-10-15
  • 2021-11-03
  • 2019-03-05
  • 2021-09-23
猜你喜欢
  • 2021-08-06
  • 2021-11-11
  • 2021-04-05
  • 2021-07-20
  • 2021-12-04
  • 2022-01-02
  • 2021-12-28
相关资源
相似解决方案