SOAP extension for Nginx PHP 7.4 not installing where it is expected

  • Posted October 20, 2021
  • PHP

I installed the SOAP package using:

apt-get install php-soap

Now it seems to be installed for PHP 7.0 but I can’t find the location of the extension in order to specify it in my php.ini file for 7.4

Under the directory /etc/php/7.0/fpm/conf.d there is a link:

/etc/php/7.0/fpm/conf.d# ls -l
20-soap.ini -> /etc/php/7.0/mods-available/soap.ini

But under /etc/php/7.4/fpm/conf.d there is not.

Where is the extension actually located?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hi @campinjay,

It seems to me if you’ve installed PHP 7.4 you already have the proper repository but when you are trying apt-cache policy php-soap it gives you information only about PHP 7.0.

Can you try

apt-get install php7.4-soap

To see what happens and if it works?