Home / OpenStack / How To Install PHP Soap on CentOS 6 VPS

How To Install PHP Soap on CentOS 6 VPS

Hello folks,
I am not going to write a lot in this article, I will just explain how can we install PHP-Soap on a CentOS installed VPS (Virtual Private Server) or any server that you have with CentOS as the operating system. Let’s just check what is actually SOAP, definitely not the one that we use to bath. 😀

What is SOAP?
SOAP stands for Simple Object Access Protocol, it can be defined as a simple lightweight, XML-based protocol for exchanging structured information between distributed applications over native web protocols, such as HTTP. SOAP is widely used by web-applications such as Magento and SalesForce to allow integration and exchange of information with other external services.

How do I install SOAP on my VPS?
Installing SOAP on a VPS is very easy, it will not take a lot from your valuable time, we just need to add the latest EPEL repo to our VPS and ask yum to do the rest. The steps are shown below.

  1. SSH to VPS as the root user.
  2. Now we need to install the the latest “EPEL” repo on the server. For that follow the below commands:
    CentOS 6 32 Bit
    # wget http://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 http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm
  3. Install the EPEL repo using the below command:
    [root@nix ~]# rpm -ivh epel-release-6-8.noarch.rpm Preparing... ############################# [100%] 1:epel-release ############################# [100%]
    4. Install “php-soap”:
    In this step we will use yum to install the SOAP on the server:
    [root@nix ~]# yum install php-soap
    OUTPUT:
    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 [y/N]: 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 get the changes on the server:
    [root@nix ~]# service httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ]
  5. Now you can check to confirm that soap has been installed on the server:
    TEST SOAP:
    [root@nix ~]# php -m | grep -i soap soap
    That’s all about SOAP installation, please do comment your thoughts! Thank you all!
Jishnu KS
Latest posts by Jishnu KS (see all)

Leave a Reply

Your email address will not be published. Required fields are marked *

Social Media Auto Publish Powered By : XYZScripts.com