PHP installation apc.so and other so extensions

Source: Internet
Author: User
Tags apc

PHP5.5 started, no longer support this thing, so 5.5 start later version, do not have to blindly sell this ... MD has been engaged for two hours: https://github.com/docker-library/php/issues/68

And no wonder this is the latest version of the official web site is a long time ago (12 ... )。。。 Https://pecl.php.net/package/apc


However, in detail the installation process, it is estimated that the installation of other so extension is the same.

1, to find the site, under the designated extension of the source code;

2, decompression just downloaded the compressed package, CD to the Unpacked folder, and then "in the directory now in the CD (called the Directory a)" Call PHP bin/phpize files (such as/home/user/php/bin/phpize), The Configure file is then generated. (if prompted cannot find autoconf.) Please check your autoconf installation and THE$PHP_AUTOCONF environment variable. Then, rerun this script. So just install the autoconf software.

( online Google to a bunch of raiders are directly from the Configure of the trilogy, did not say this configure exactly where to come, and then I did not unpack the good directory to find configure Ah, and then harm the Don think Raiders have problems ah, And then I completely groped myself for two hours ... Do you want to be so Shang?

Note: Note that the bin/phpize file of PHP is invoked directly in the directory of the expansion pack, not CD to other directory calls.

3. The trilogy "still executes in directory a":

./configure--with-php-config=/home/yourpath/php/bin/php-config--ENABLE-APC--enable-apc-debug (had to spit under the slot, PHP Manual inside the strategy has a clerical error place ... In this step, it uses a./config, but there is no such document.

Make

Make install

4, the above "3," after the compiled so file, under the directory A will appear a modules directory, which has been obediently lying well we need: modules/apc.so.

Done.

How to add apc.so to the back of the php.ini, you do not have to say here. Online a bunch of raiders, lazy to write, their own check it. (To put it simply, throw it directly into the php.ini "Extension_dir" in the specified directory).

The compile process for other so files should be similar.


From:purple Dust

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.