Linux compiled php Add extension so method, key phpize and CONFIG.M4

Source: Internet
Author: User

PHP has been compiled under Linux, how to add the so extension.

A sh:/usr/local/php5/bin/phpize to use.

Principle: Use Phpize in the package to find the corresponding extension folder, in the inside to perform phpize, specific steps:

PHP Installation path:/USR/LOCAL/PHP5

PHP Source Path:/home/default7/lamp/php-5.5.13

Extended hypothesis Zlib:/home/default7/lamp/php-5.5.13/ext/zlib

Execute code:

Ln-s/USR/LOCAL/PHP5/BIN/PHPIZE/USR/BIN/PHPIZECD/HOME/DEFAULT7/LAMP/PHP-5.5.13/EXT/ZLIBMV CONFIG0.M4 config.m4phpize//here prompt error, installation Bz2,bz2-develyum install bz2 bz2-devel./configure--with-php-config=/usr/local/php5/bin/ Php-configmakemake testmake Installvim/etc/php.ini # #加入extension =bz2.so


(by default7#zbphp.com)




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.