In Linux, PHP has been compiled to add the so extension method. The key is phpize and config. m4.

Source: Internet
Author: User
In LINUX, PHP has been compiled and how to add the so extension. A sh: usrlocalphp5binphpize principle used: Use phpize In the compressed package to find the corresponding extension folder, execute phpize in it, the specific steps: PHP installation path: usrlocalphp5PHP source code path: homedefault7lampphp-5.5.13 Extension

In LINUX, PHP has been compiled and how to add the so extension. A sh:/usr/local/php5/bin/phpize principle is used: Use phpize to find the corresponding extension folder in the compressed package and execute phpize in it. The specific steps are as follows: PHP installation path:/usr/local/php5 PHP source code path:/home/default7/lamp/php-5.5.13 Extension

In LINUX, PHP has been compiled and how to add the so extension.

Sh:/usr/local/php5/bin/phpize

Principle: Use phpize to find the corresponding extension folder in the compressed package and execute phpize in it. The specific steps are as follows:

PHP installation path:/usr/local/php5

PHP source code path:/home/default7/lamp/php-5.5.13

Extension hypothesis zlib:/home/default7/lamp/php-5.5.13/ext/zlib

Run the Code:

Ln-s/usr/local/php5/bin/phpize/usr/bin/phpizmcm/home/default7/lamp/php-5.5.13/ext/zlibmv config0.m4 config. m4phpize // here prompt error, install bz2, bz2-develyum install bz2 bz2-devel. /configure -- with-php-config =/usr/local/php5/bin/php-configmakemake testmake installvim/etc/php. ini ## add 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.