• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

PHP 7 - APCu

Bogdan1

Regular Pleskian
Hello,

After install PHP 7, PHP-DEVEL, APCu. I have problem with APCu.
APC.PHP work ok, in phpinfo(); i see that APCu is enabled. But after check in php like this

PHP:
$bar = 'BAR';
apc_store('foo', $bar);
var_dump(apc_fetch('foo'));

I'm getting error 500 with this Warning in log:

2015-12-08 15:21:16 Error $CLIENT_IP 500 GET / HTTP/1.1
log-browser-client.png
218 Apache access
2015-12-08 15:21:16 Warning $CLIENT_IP mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to undefined function apc_store() in /var/www/vhosts/domain.com/domain.com/index.php:4 Apache error
2015-12-08 15:21:16 Warning $CLIENT_IP mod_fcgid: stderr: Stack trace: Apache error
2015-12-08 15:21:16 Warning $CLIENT_IP mod_fcgid: stderr: #0 {main} Apache error
2015-12-08 15:21:16 Warning $CLIENT_IP mod_fcgid: stderr: thrown in /var/www/vhosts/domain.com/domain.com/index.php on line 4 Apache error

d47paWW.png


How can I fix that?

Thanks
 
Back
Top