Digital ocean a SoapClient installation

Posted May 19, 2017 17.4k views
ApacheUbuntu 16.04

I use a digital ocean as a server. SoapClient phpinfo() is not found. I am running the following code in the terminal.

1- sudo apt-get install php-soap

2- sudo systemctl restart apache2

Then I reset the server. But again phpinfo() is not seen.

How can i install digital ocean a SoapClient.


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


If you installed Apache and PHP on your own, you’ll need to make sure that this package is installed for PHP to work:


You’d replace 7.0 with the PHP version that corresponds to the version you’re wanting to install. This is the package that installs mod_php, which Apache needs to handle PHP requests.

I’d also recommend using the actual soap package that is available:


You can fetch a list of available packages by running:

apt-cache search php7.0