PHP Class soapclient Not found explanation of workaround

Source: Internet
Author: User
Tags php class zts
This article mainly introduces the PHP Class soapclient not found solution, the need for friends can refer to the following

To use the soapclient, new a hint Class ' soapclient ' not found, check the next phpinfo, the reason is not compiled this extension, had to now add.

PHP reported an error similar to the following when calling WebService:

( ! ) Fatal error:class ' soapclient ' not found in e:/websrv/ci/system/libraries/webservice.php on line 17

Workaround:

Open the php.ini, find the Php_soap.dll, remove the front semicolon.

; Extension=php_soap.dll

The premise is that Php_soap.dll has been installed

The author's PHP installed in the/usr/local/php/directory, if not installed can refer to the following methods

$ cd/home/downloads/php-5.6.12   # Enter the PHP source directory $ cd ext/soap  # into the SOAP extension directory $/usr/local/php/bin/phpize # ready to add extension $. Configure-with-php-config=/usr/local/php/bin/php-config--enable-soap   # enable soap$ make$ make install

After the extension installation is complete, the prompt extension is installed in this directory:

Installing Shared extensions:/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/

Edit the php.ini file, enable the Extension_dir extension directory, add the soap.so extension:

; Directory in which the loadable Extensions (modules) reside.; Http://php.net/extension-dirextension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/"; On Windows:; Extension_dir = "ext" extension=soap.so    # Add SOAP extension

Restart PHP-FPM make effective

KILL-USR2 ' Cat/usr/local/php/var/run/php-fpm.pid '

Under Windows edit php.ini cancel the line comment

Extension=php_soap.dll

Related recommendations:

Workarounds for PHP Class soapclient not found

Lumen timezone time zone setting method

A brief explanation of the simple implementation method of PHP Nginx real-time output

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.