Skip to content
Advertisement

Can not install php7.4-soap on Debian 9

I am using Debian 9, and I recently upgraded PHP from 5.6 to 7.4. I was hit by the

Class ‘SoapClient’ not found

error when running an old PHP script, which worked very well under PHP 5.6. The phpinfo() lists “SOAP” module but it doesn’t have a dedicated “soap” section with “Soap Client” listed (as mentioned here).

I believe the problem is that I have not installed the php7.4-soap extension, so I run sudo apt-get install php7.4-soap, but I got these errors:

JavaScript

I also tried installing php7.4-common manually, but the installation failed with these errors:

JavaScript

How can I resolve this kind of problem? Thank you.

My output of grep -Rn --include=*.list ^[^#] /etc/apt/ is:

JavaScript

Advertisement

Answer

On debian the php7.4-soap is available for bullseye and sid.

On debian Stretch, you can install php7.4-soap from Sury repo:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement