我正在尝试在Ubuntu 16上安装Composer。
curl -sS https://getcomposer.org/installer | php
并收到警告:
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
我使用以下方法安装了SOAP:
sudo apt-get install php-soap
在目录/usr/lib/php/20151012/php_soap.dll
中实际上没有这个文件。
执行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
如何解决与
php_soap.dll
有关的问题?
php.ini
中不存在soap.ini
。我应该输入吗?/etc/php/7.0/cli/conf.d/
中存在20-soap.ini
。 - Tomasz