Install PHP SOAP on CentOS / RHEL
SOAP ( Simple Object Access Protocol) is a message protocol that allows distributed elements of an application to communicate.
Table of Contents
Step 1 : Install Latest EPEL Repository
If your server doesn’t have EPEL repo, then install this first:
# RHEL/CentOS 6: sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm # RHEL/CentOS 7: sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm # RHEL/CentOS 8: sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
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. ?
Preview may take a few seconds to load.
Below you will find some common used markdown syntax. For a deeper dive in Markdown check out this Cheat Sheet
Bold & Italic
Bold **double asterisks**
Three back ticks and then enter your code blocks here.
# This is a Heading 1
## This is a Heading 2
### This is a Heading 3
> type a greater than sign and start typing your quote.
You can add links by adding text inside of  and the link inside of (), like so:
To add a numbered list you can simply start with a number and a ., like so:
1. The first item in my list
For an unordered list, you can add a dash -, like so:
- The start of my list
You can add images by selecting the image icon, which will upload and add an image to the editor, or you can manually add the image by adding an exclamation !, followed by the alt text inside of , and the image URL inside of (), like so:
To add a divider you can add three dashes or three asterisks:
--- or ***