First, it is best to keep the files installed at that time after installing php, such as my path/export1/softcdphp-5.1.6/ext/soap/usr/local/php/bin/phpize. /configurewith-php-config =/usr/local/php/bin/php-configenable-soapm
First, it is best to keep the files installed at that time after installing php, such as my path/export1/soft
Cd php-5.1.6/ext/soap
/Usr/local/php/bin/phpize
./Configure-with-php-config =/usr/local/php/bin/php-config-enable-soap
Make
Make install
The compiled soap. so file is saved in the/usr/local/php/lib/php/extensions/no-debug-non-zts-20050922 directory.
Modify the php. ini file
Manually modify: Search for extension_dir = "./" in/usr/local/webserver/php/etc/php. ini.
Change to extension_dir = "/usr/local/webserver/php/lib/php/extensions/no-debug-non-zts-20050922 /"
Add the following after this line, and then save:
Extension = "soap. so"
Restart apache. OK, we can see the extended soap module.
If you want to extend other modules, you can do so again. Here are some notes to note: If zend, php. the INI file is under/usr/local/php/etc, but after recompilation, it is played back to/usr/local/php/lib. So pay attention to it.