1

I'm using PHP Version 8.0.14, and Ubuntu 20.04.1 on my AWS EC2.

My Loaded Configuration File is located here /etc/php/8.0/fpm/php.ini

and in my php.ini i have soap enabled

extension=soap (removed the ;)

Even after restarting my Apache i still get the error Class "SoapClient" not found.

I thought maybe i didn't have Soap installed, so i tried sudo apt-get install php-soap and got this

Reading package lists... Done
Building dependency tree
Reading state information... Done
php-soap is already the newest version (2:8.1+92+ubuntu20.04.1+deb.sury.org+2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

in my php code, the Soap is called like this

use SoapClient;

class bla {

 function abc() {
   $x = new SoapClient('https://url/?wsdl'); 
 }
}

any idea how to fix this? Thank you.

Shaho
  • 157
  • 3
  • 15

0 Answers0