Need help? Call us on 1300 789 260

Install PHP Soap on CentOS 7 VPS

Difficulty: Advanced

Prerequisites

  • SSH access to your VPS

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:
    yum install epel-release
  3. 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 [y/d/N]: 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!
    
  4. Restart Apache to apply the changes:
    systemctl restart httpd
  5. You can also check to confirm that soap has been installed:
    [root@ws1 ~]# php -m | grep -i soap
    soap
Was this article helpful? Yes No
👥

Having trouble? We’re here to help!

We’ve built our company with a serious focus on quality service. Feel free to give us a call!

1300 789 260