Home > Backend Development > PHP Problem > PHP7.1-soap extension installation method

PHP7.1-soap extension installation method

藏色散人
Release: 2023-03-04 07:32:01
Original
2867 people have browsed it

How to install php soap extension: first download the "php7.1.27" source code package and decompress it; then execute the command "./configure --enable-soap=shared" to configure PHP and install SOAP; finally modify the php configuration file and add the soap module.

PHP7.1-soap extension installation method

Recommended: "PHP Video Tutorial"

PHP7.1-soap extension installation

1. Download the php7.1.27 source package

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

2. Unzip the source package

tar -xvf php7.1.27.tar.gz
Copy after login

3. Enter the directory

cd  php7.1.27
Copy after login

4. Configure the PHP installation to Contains SOAP

./configure --enable-soap=shared
Copy after login

NOTE:

If you receive an error similar to the following, you need to install libxml2:

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

You can install libxml2 via the yum repository:

yum install libxml2-devel
Copy after login

5. Compile and build

make
Copy after login

6. Copy the soap module to the existing php directory

cp modules/soap.so /usr/lib/php/20160303/soap.so
Copy after login

7. Modify the php.ini configuration file to add the soap module

extension='/usr/lib/php/20160303/soap.so'
Copy after login

8.Restart php-fpm

/etc/init.d/php-fpm restart
Copy after login

The above is the detailed content of PHP7.1-soap extension installation method. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template