I use Cento 6 with Cpanel, PHP 5.5.24, and MySql 14.14. I installed the APC module through module installer, PECL; and then using Easy Apache compiled Apache with POD, and POD_Mysql on. But I got an error message saying
Fatal error: Call to undefined function apc_fetch() in sites/all/modules/apc/drupal_apc_cache.inc on line 131
I noticed that APC has many settings, but I only see around 6 one in PHP.ini ( Cpanel seems has put APC settings in its php.ini file). My settings on APC in php.ini are:
apc.ttl=0
apc.stat=0
apc.shm_size=96M
apc.cache_by_default=1
apc.filters="+public_html"
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=0
Also it seems the APC settings in php.ini has no extension= Sqlite.so, but it dose have extension=pdo_sqlite.so, no sure whether this is the cause of issue.
Comments
Comment #1
atpaust commentedMySql version was 5.6
Comment #2
gielfeldt commentedYou need APCu extension for PHP5.5+.
http://pecl.php.net/package/APCu
Warning, the documentation is close non-existent.
Comment #3
lanceh1412 commentedI'm getting this error after upgrading from ubuntu 12.04 to 14.04. According to this article it seems as though php 5.5 has its own opcode cache which can be enabled in php.ini.
(By the way if you decide to disable caching remember to remove the cache conf from settings.php. I just spent some time trying to disable apc & couldn't understand why it kept being called even after uninstalling the module. It was only after deleting the db that I realised it was something in the code calling it)!
Comment #4
avpadernoPHP 5.5 doesn't have the APC extension anymore; there is the APCu extension that needs to be compiled with APC backward compatibility. Without that, this module will not work.
The module code is not completely compatible with APCu, at the moment. It should use APCu functions, when APCu is installed, and APC functions when APC is installed. This will be fixed in #2846622: Change the module to require only the APCu extension.
Comment #5
avpaderno