Home > Backend Development > PHP Tutorial > Install php-soap under Linux by recompiling php_PHP tutorial

Install php-soap under Linux by recompiling php_PHP tutorial

WBOY
Release: 2016-07-13 17:42:03
Original
1021 people have browsed it

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.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/486097.htmlTechArticleFirst 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/...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template