Home > Article > Backend Development > Introduction to installing soap module under PHP Linux_PHP tutorial
First, after installing php, it is best to keep the files installed at that time, 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
Manual modification: Find extension_dir = "./" in /usr/local/webserver/php/etc/php.ini
Modify it to extension_dir = "/usr/local/webserver/php/ lib/php/extensions/no-debug-non-zts-20050922/"
and add the following after this line, then save:
extension = "soap.so"
Restart apache, ok we can already see the extended soap module.
If you want to extend other modules, you can do it all at once. There is another point to note here. If you do zend, the php.ini file is under /usr/local/php/etc, but we need to re- After compilation, it is played back to /usr/local/php/lib. So something to note here.