Missing php_soap.dll in Ubuntu 16

I am trying to install composer on Ubuntu 16.

curl -sS https://getcomposer.org/installer | php

and get a warning:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_soap.dll' - /usr/lib/php/20151012/php_soap.dll: cannot open shared object file: No such file or directory in Unknown on line 0
All settings correct for using Composer
Downloading 1.2.0...
Composer successfully installed to: //composer.phar
Use it: php composer.phar

I installed the soap using:

sudo apt-get install php-soap

/usr/lib/php/20151012/php_soap.dllthere really is no such e-file in the directory

after php -i | grep -i soap:

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/php_soap.dll' - /usr/lib/php/20151012/php_soap.dll: cannot open shared object file: No such file or directory in Unknown on line 0
/etc/php/7.0/cli/conf.d/20-soap.ini,
soap
Soap Client => enabled
Soap Server => enabled
soap.wsdl_cache => 1 => 1
soap.wsdl_cache_dir => /tmp => /tmp
soap.wsdl_cache_enabled => 1 => 1
soap.wsdl_cache_limit => 5 => 5
soap.wsdl_cache_ttl => 86400 => 86400

How to solve the problem with php_soap.dll?

+4
source share
1 answer

First try to find where the dll file is with the following command

grep -r "soap.dll" /etc/php/7.0/cli/

If you get any matches from the team, do a search ;in front of them. If they don’t have it, open the file and comment out lines e.

nano /etc/php/7.0/cli/php.ini

ctrl + W, , , , soap.dll, . ; ctrl + X, Y enter.

php -i | grep -i soap , .

+7

Source: https://habr.com/ru/post/1652525/


All Articles