Add dynamic modules (take the Mbstring module as an example) without newly compiled PHP

Source: Internet
Author: User
Tags php source code
Do not recompile PHP, add dynamic modules (take mbstring module for example)

1 Enter the directory of mbstring in the PHP source code directory
cd/usr/local/src/php-5.2.4/ext/mbstring/

2 executing php bin/phpize files in the post-installation directory
/usr/local/php/bin/phpize (this requires aotuconf support, Unbutnu:sudo apt-get install aotuconf)

?

3?. /configure--with-php-config=/var/lib/php5/bin/php-config #这里写自己的config文件.

?

4. Make && makes install (if there is an error in the previous step to find the corresponding solution for the cause of the error), after the installation will be prompted to generate the so file location, and then copied to the PHP extension directory. Like $home/usr/local/php5/ext/. Below, and then load the so file in php.ini, if the load is unsuccessful it can be written as an absolute path.

?

  • Related Article

    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.