Home > Backend Development > PHP Tutorial > Detailed explanation of php apc cache configuration

Detailed explanation of php apc cache configuration

WBOY
Release: 2016-07-25 08:52:30
Original
1415 people have browsed it
  1. print_r(apc_cache_info());?>
Copy code

Such a situation will occur: PHP Warning: apc_cache_info(): No APC info available. Perhaps APC is not enabled? Check apc.enabled in your ini file in /var/www/htdocs/test/apc_cache_info.php on line 2 In fact we have set apc.enabled = 1 But why not. Check it through phpinfo(); and it is indeed open. But apc.enable_cli is not opened apc.enable_cli Off Off apc.enabled On On So I added it to the corresponding location in php.ini. apc.enable_cli = 1 Running the script again will succeed.

The version used above is: php 5.2.9 APC-3.0.19.tgz



source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template