Overview
SOAP (Simple Object Access Protocol) is a lightweight, XML-based protocol for exchanging structured information between distributed applications over native web protocols, such as HTTP. It's used by popular applications such as Magento and SalesForce to allow integration and exchange of information with other external services.
This isn't installed by default and the PHP libraries aren't part of the standard CentOS packages. To install on your VPS, simply follow the instructions below.
Instructions
- SSH to VPS as the root user.
- Install the the latest "EPEL" repo:
yum install epel-release
- Install "php-soap":
yum install php-soap
Here's an example output:
[root@ws1 ~]# yum install php-soap Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.overthewire.com.au * epel: mirror.overthewire.com.au * extras: centos.mirror.uber.com.au * updates: mirror.overthewire.com.au Resolving Dependencies --> Running transaction check ---> Package php-soap.x86_64 0:5.4.16-23.el7_0.3 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================== Package Arch Version Repository Size ================================================================== Installing: php-soap x86_64 5.4.16-23.el7_0.3 base 155 k Transaction Summary ================================================================== Install 1 Package Total download size: 155 k Installed size: 336 k Is this ok 2024: y Downloading packages: php-soap-5.4.16-23.el7_0.3.x86_64.rpm | 155 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : php-soap-5.4.16-23.el7_0.3.x86_64 1/1 Verifying : php-soap-5.4.16-23.el7_0.3.x86_64 1/1 Installed: php-soap.x86_64 0:5.4.16-23.el7_0.3 Complete!
- Restart Apache to apply the changes:
systemctl restart httpd
- You can also check to confirm that soap has been installed:
[root@ws1 ~]# php -m | grep -i soap soap