In case that you have Ubuntu in your machine, the following steps will help you:
- Check first in your php testing file if you have soap (client / server)or not by using phpinfo(); and check results in the browser. In case that you have it, it will seems like the following image ( If not go to step 2 ):
- Open your terminal and paste: sudo apt-get install php-soap.
- Restart your apache2 server in terminal : sudo service apache2 restart.
- To check use your php test file again to be seems like mine in step 1.
$ php -i | grep -i soap or $ $ apt-cache search php | grep -i soap $ sudo apt-get install php-soap $ sudo service apache2 restart
or in RHEL/Fedora
$ yum search php | grep -i soap $ sudo yum install php-soap