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