How to install the 2.9-php extension module

Source: Internet
Author: User

/USR/LOCAL/PHP/BIN/PHP-M viewing installed modules (static + dynamic)


If you find that PHP lacks a functional module, there are 2 workarounds:

1. Recompile the source code and add the function module.

2. compile the function module separately and load dynamically in the configuration .


Example: PHP needs to add a module curl

1) Enter the module directory of the source package Cd/usr/local/src/php-5.4.36/ext

2) Enter the module catalogue Cd/usr/local/src/php-5.4.36/ext/curl

3)/usr/local/php/bin/phpize purpose is to generate the Configure file in the current directory

4)./configure--with-php-config=/usr/local/php/bin/php-config--After the fixed wording

5) Make

6) make install completed, will prompt to generate the path of the module/usr/local/php/lib/php/extensions/no-debug-non-zts-20100525/ Extensions default is the extension module storage path, you can customize the path in php.ini Extensions_dir generally keep the default

7) Add code to php.ini extension=curl.so load dynamic module configuration


If the module name is incorrectly written,/usr/local/php/bin/php-m |grep Curl cannot find this module. In the error log, you can view the errors, locate the fault Cat/usr/local/php/logs/php_errors.log


How to install the 2.9-php extension module

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.