APC configuration in Linux

Source: Internet
Author: User
APC configuration in Linux-Linux Enterprise Application-Linux server application information. For details, refer to the following section. I tried APC in the project yesterday, and the performance improved by as much as 125% in the preliminary test.
: Http://pecl.php.net/package/APC
Decompress the latest 3.0.16-stable and enter the directory.
/Usr/local/php/bin/phpize
./Configure -- enable-apc-mmap -- with-php-config =/usr/local/bin/php-config
Make
Make install
Cp/usr/local/lib/php/extensions/no-debug-zts-20060613/apc. so/usr/local/lib/php/extensions/apc. so
Chmod 755/usr/local/lib/php/extensions/apc. so
Add/etc/php. ini to the end
Extension = apc. so
Apc. enabled = 1
Apc. cache_by_default = on
Apc. shm_segments = 1
Apc. shm_size = 64
Apc. ttl = 7200
Apc. user_ttl = 7200
Apc. num_files_hint = 0
Apc. write_lock = On
Restart apache
We can see from apc. php that the hits rate is above 98%, which is satisfactory.

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.