PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, March 7, 2022

[FIXED] Missing php_soap.dll in Ubuntu 16

 March 07, 2022     composer-php, linux, php, soap, ubuntu     No comments   

Issue

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

in /usr/lib/php/20151012/php_soap.dll directory really there is no such e file

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 resolve problem with php_soap.dll ?


Solution

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.

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

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.

Try running php -i | grep -i soap and to see if you still get any errors.



Answered By - anatoli
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing