Install PHP SOAP on CentOS / RHEL

Published on September 3, 2019 34 sec read

We're available to do freelance project. Take a look at our services!

SOAP ( Simple Object Access Protocol) is a message protocol that allows distributed elements of an application to communicate.

Table of Contents

  1. Install Latest EPEL Repository
  2. Install SoapClient
  3. Restart Web Server
  4. Check SOAP is Installed

Step 1 : Install Latest EPEL Repository

If your server doesn’t have EPEL repo, then install this first:

# RHEL/CentOS 6:
sudo yum install

# RHEL/CentOS 7:
sudo yum install

# RHEL/CentOS 8:
sudo yum install

Step 2 : Install SoapClient

Run this command to install SoapClient:

sudo yum install php-soap

Step 3 : Restart Webserver

We have successfully installed php-soap on our server. Now we have to restart the web server:

# Apache:
sudo systemctl restart httpd

# Nginx:
sudo systemctl restart nginx

Step 4 : Check SOAP is Installed

Run this command to confirm that SOAP is installed or not:

php -m | grep -i soap


That’s all. Thanks for reading. 🙂

Monthly Newsletter

One email a month, packed with the latest tutorials, delivered straight to your inbox.
We'll never send any spam or promotional emails.

Hey, I'm Md Obydullah. I build open-source projects and write on Laravel, Linux server, modern JavaScript and more on web development.


Leave a Reply

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