How to install the soap module in PHP: how to install the soap module in PHP
1. install the soap module in Linux
After installing php, it is best to keep the files installed at that time, such as usr/local/php-5.3.2
To check whether the soap module is installed, run php-m in the php installation directory.
For example:/usr/local/php/bin/php-m | grep 'Soap'
If no installation is available, go to the php installation source folder.
Cd php-5.3.2/ext/soap enter and then run phpize command/usr/local/php/bin/phpize
Check whether the information has an error. if there is no error, run the following command:
./configure ?with-php-config=/usr/local/php/bin/php-config ?enable-soap
Then install and compile
makemake install
After installation, a message is displayed, indicating the path to save the soap. so file.
The compiled soap. so file is saved in the/usr/local/php/lib/php/extensions/no-debug-non-zts-20111222 directory, and then the php. ini file is modified.
Manually modify: Search for extension_dir = "./" in/usr/local/php/etc/php. ini. it is commented out by default.
Change to extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20111222 /"
Add the following after this line, and then save:
extension=soap.so
Restart apache and run php-m to view the extended soap module.
If you want to install extension modules, you can do so.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.