Home >Backend Development >PHP Tutorial >Install php-soap under Linux by recompiling php_PHP tutorial
First of all, 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 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 after we recompile it, It plays back to /usr/local/php/lib. So something to note here.