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 |