clarkk clarkk - 1 year ago 580
PHP Question

PHP5.6 and APC installation

How to install APC under PHP 5.6?

APC is installed

apt-get install php-pear php5-dev make libpcre3-dev
pecl install apc

# locate

APC is added to php.ini

But APC is not mentioned in output from

Fatal error: Call to undefined function apc_fetch()

Answer Source

APC is (more or less) a deprecated package (the last release, 3.1.14, was unstable and had to be rolled back). It has been replaced by the core package opcache.

I'm not sure about Debian flavors (all my searches return the PECL library while opcache is native to 5.6) but in CentOS you have to install the php-opcache package, which contains the file.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download