I am getting these errors. Ive already installed apc in ssh using the wget command. The errors I get are:

Warning: Invalid argument supplied for foreach() in DrupalAPCCache->getMultiple() (line 120 of /var/www/html/sites/all/modules/apc/drupal_apc_cache.inc).
Warning: apc_cache_info() [function.apc-cache-info]: No APC info available. Perhaps APC is not enabled? Check apc.enabled in your ini file in DrupalAPCCache->clear() (line 239 of /var/www/html/sites/all/modules/apc/drupal_apc_cache.inc).
Warning: apc_cache_info() [function.apc-cache-info]: No APC info available. Perhaps APC is not enabled? Check apc.enabled in your ini file in DrupalAPCCache->clear() (line 239 of /var/www/html/sites/all/modules/apc/drupal_apc_cache.inc).
The APC module needs the apc extension see: http://www.php.net/apc. (Currently using APC Not available)
Warning: Invalid argument supplied for foreach() in DrupalAPCCache->getMultiple() (line 120 of /var/www/html/sites/all/modules/apc/drupal_apc_cache.inc).
Warning: apc_cache_info() [function.apc-cache-info]: No APC info available. Perhaps APC is not enabled? Check apc.enabled in your ini file in DrupalAPCCache->clear() (line 239 of /var/www/html/sites/all/modules/apc/drupal_apc_cache.inc).

Comments

Phizes’s picture

Category: bug » support

You need to install APC either through PECL or your distro's package manager. The PECL install may be simple as sudo pecl install apc if you have PEAR installed on your system, and all the necessary dependencies.
As for your distro (if you are running Linux), it depends on it's package manager. On Ubuntu you can do it with sudo apt-get install php-apc this will likely work for most Debian based distro's.

You also need to add a line to your php.ini to load APC: extension=apc.so
This line could also be placed in a file apc.ini in PHP's conf.d directory, if there is one, along with all the other configuration parameters.
You may also need apc.enabled=1 in that file to get APC to work, you may also need to set apc.shm_size.

Here is the PHP Manual Section on APC which covers all the configuration options.

R.Muilwijk’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.