You are on page 1of 4

1300 789 260

Install PHP Soap on CentOS 7 VPS


Written by Jeff Hough
Difficulty: Advanced

Table of Contents

1. Prerequisites
2. Overview
3. Instructions

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:


yuminstallepelrelease

3. Install "php-soap":

yuminstallphpsoap

Here's an example output:


[root@ws1~]#yuminstallphpsoap
Loadedplugins:fastestmirror
Loadingmirrorspeedsfromcachedhostfile
*base:mirror.overthewire.com.au
*epel:mirror.overthewire.com.au
*extras:centos.mirror.uber.com.au
*updates:mirror.overthewire.com.au
ResolvingDependencies
>Runningtransactioncheck
>Packagephpsoap.x86_640:5.4.1623.el7_0.3willbeinstalled
>FinishedDependencyResolution

DependenciesResolved

==================================================================
PackageArchVersionRepositorySize
==================================================================
Installing:
phpsoapx86_645.4.1623.el7_0.3base155k

TransactionSummary
==================================================================
Install1Package

Totaldownloadsize:155k
Installedsize:336k
Isthisok[y/d/N]:y
Downloadingpackages:
phpsoap5.4.1623.el7_0.3.x86_64.rpm|155kB00:00:00
Runningtransactioncheck
Runningtransactiontest
Transactiontestsucceeded
Runningtransaction
Installing:phpsoap5.4.1623.el7_0.3.x86_641/1
Verifying:phpsoap5.4.1623.el7_0.3.x86_641/1

Installed:
phpsoap.x86_640:5.4.1623.el7_0.3
Complete!

4. Restart Apache to apply the changes:

systemctlrestarthttpd
5. You can also check to confirm that soap has been installed:

[root@ws1~]#phpm|grepisoap
soap

Having trouble? Were here to help!


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

1300 789 260

You might also like