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

  1. SSH to VPS as the root user.
  2. Install the the latest "EPEL" repo:

    CentOS 6 32 Bit

    wget https://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
    rpm -ivh epel-release-6-8.noarch.rpm

    CentOS 6 64 Bit

    wget https://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    rpm -ivh epel-release-6-8.noarch.rpm
    
    [root@ws1 ~]# rpm -ivh epel-release-6-8.noarch.rpm
    Preparing...                ############################# [100%]
       1:epel-release           ############################# [100%]
  3. Install "php-soap":
    [root@ws2 ~]# yum install php-soap
    Loaded plugin fastestmirror
    Loading mirror speeds from cached hostfile
    epel/metalink       | 3.0 kB     00:00     
     * base: mirror.overthewire.com.au
     * epel: mirror.overthewire.com.au
     * extras: mirror.overthewire.com.au
     * updates: mirror.aarnet.edu.au
    epel                | 4.4 kB     00:00     
    epel/primary_db     | 6.3 MB     00:00     
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package php-soap.x86_64 0:5.3.3-27.el6_5.2 will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ==================================================================
     Package       Arch        Version              Repository  Size
    ==================================================================
    Installing:
    php-soap       x86_64      5.3.3-27.el6_5.2     updates     142 k
    
    Transaction Summary
    ==================================================================
    Install       1 Package(s)
    
    Total download size: 142 k
    Installed size: 324 k
    Is this ok 2024: y
    Downloading Packages:
    php-soap-5.3.3-27.el6_5.2.x86_64.rpm            | 142 kB     00:00     
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Warning: RPMDB altered outside of yum.
      Installing : php-soap-5.3.3-27.el6_5.2.x86_64             1/1 
      Verifying  : php-soap-5.3.3-27.el6_5.2.x86_64             1/1 
    
    Installed:
    php-soap.x86_64 0:5.3.3-27.el6_5.2
    
    Complete!
  4. Restart Apache to apply the changes:
    [root@ws1 ~]# service httpd restart
    Stopping httpd:                                        [  OK  ]
    Starting httpd:                                        [  OK  ]
  5. You can also check to confirm that soap has been installed:
    [root@ws2 ~]# php -m | grep -i soap
    soap
    
Was this article helpful?

Related Articles