Phpize compilation and installation of PHP accelerator APC

Source: Internet
Author: User
Tags apc

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

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.