I am trying install composer on Ubuntu 16.
curl -sS https://getcomposer.org/installer | php
and receiving 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 instaled soap using:
sudo apt-get install php-soap
/usr/lib/php/20151012/php_soap.dll directory really there is no such e file
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 resolve problem with
First try to search where is the .dll file mentioned with the following command
grep -r "soap.dll" /etc/php/7.0/cli/
If you get any matches from the command, search for a
; before them. If they don’t have it, open the file(s) and comment the lines e.
Then press ctrl + W to invoke the search, then paste the string you’re searching for, in this case
soap.dll and you should reach the line of that string. Put a ; in front of it and save the file with ctrl + X, followed by Y and enter.
php -i | grep -i soap and to see if you still get any errors.
Run this two commands
sudo apt-get update sudo apt-get upgrade
it will fix php package issue.