Note: After php is installed, you need to install other extensions using phpize. Most of the extensions to be installed can be in the "php source file directory/Ext. The installation method is the same as the following, but the download and decompression processes are missing.
Common PHP accelerators: APC, eAccelerator, and XCache. We will install APC today.
Apc pecl project: http://pecl.php.net/package/apc
1. Download and decompress:
cd /data/temp/wget http://pecl.php.net/get/APC-3.1.7.tgztar xzf APC-3.1.7.tgzcd APC-3.1.7
2. Compile and install APC:
/data/servers/php/bin/phpize./configure --with-php-config=/data/servers/php/bin/php-configmake && make install
3. Configure the php. ini file
[apc]extension_dir=/data/servers/php/lib/php/extensions/no-debug-non-zts-20090626/extension="apc.so"
4. Restart php-fpm to test whether the APC installation is normal.
From: http://www.fising.cn/2011/03/phpize-%E7%BC%96%E8%AF%91%E5% AE %89%E8%A3%85-php-%E5%8A%A0%E9%80%9F%E5%99%A8-apc.shtml