Using Apcu With Php7 Issue

So I have just upgraded to PHP7 and am having an issue with APC now. It is set to use "apc" in the config_local.php file and phpinfo says 'Enabled' however on running the cart I get:

Tygh\Exceptions\AException
Message
"APC" PHP extension is not installed.
Error at
app/Tygh/Backend/Cache/Apc.php, line: 29

This is not APCu though is it, so is the cart trying to run the wrong version? OR is this a hosting misconfiguration?

post to bugtracker for inspection

Any updates ? I found APC very very slow and consuming alot of resources on the server level.

Hitting a brick wall with it, have been told to set the config as:

$config['cache_backend'] = 'apcu';

But it does not load, my host says a coding error as they have had:

[Mon Mar 13 17:38:00.014793 2017] [:error] [pid 1138] [client 78.110.160.238:39101] PHP Fatal error: Allowed memory size of 4294967296 bytes exhausted (tried to allocate 140196241534976 bytes) in /home/cctvkits/dev/app/functions/fn.init.php on line 909"

Which is an unrealistic request?

Hitting a brick wall with it, have been told to set the config as:

$config['cache_backend'] = 'apcu';

But it does not load, my host says a coding error as they have had:

[Mon Mar 13 17:38:00.014793 2017] [:error] [pid 1138] [client 78.110.160.238:39101] PHP Fatal error: Allowed memory size of 4294967296 bytes exhausted (tried to allocate 140196241534976 bytes) in /home/cctvkits/dev/app/functions/fn.init.php on line 909"

Which is an unrealistic request?

On what kind of server are you ? Are you using Cpanel or similar control panel for your server ?

I installed a APCu module on my Cpanel CentOS6 6.8 server and got it working although no real improvement but that is not your problem. You still have configuration issse. Did you try to contact your hosting provider for help ?

Hitting a brick wall with it, have been told to set the config as:

$config['cache_backend'] = 'apcu';

But it does not load, my host says a coding error as they have had:

[Mon Mar 13 17:38:00.014793 2017] [:error] [pid 1138] [client 78.110.160.238:39101] PHP Fatal error: Allowed memory size of 4294967296 bytes exhausted (tried to allocate 140196241534976 bytes) in /home/cctvkits/dev/app/functions/fn.init.php on line 909"

Which is an unrealistic request?

Hi,

Did you manage to fix this? I am experiencing the same issue.

On what kind of server are you ? Are you using Cpanel or similar control panel for your server ?

I installed a APCu module on my Cpanel CentOS6 6.8 server and got it working although no real improvement but that is not your problem. You still have configuration issse. Did you try to contact your hosting provider for help ?

My server is nginx on CentOS 7. I am using VPS. APCu is installed. By the time I activate APCu in config.local.php, the site stops working.

Do you have any ideas on how to fix this? Am I missing any other configuration for APCu?

Thanks!

I fixed it.

In the /etc/php.d (the folder where ini files are looked), I found two files:

apcu.ini

40-apcu.ini

I think the latter one was created when executing Ansible Playbook that CS-Cart team did. Thus, a conflict between these two files could have made my server suffer. I deleted the first one assuming that the other is the one configured correctly.

Anyway, I tested it using the apcu monitor script, seems working fine.

Regards!