Install php-soap in Linux by re-compiling php

Source: Internet
Author: User
Tags zts
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.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.