Linux – APC module causing strange error

alternative-php-cachecentos6linuxpeclPHP

When I run
php -v

I get:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/apc.so' – /usr/lib64/php/modules/apc.so: undefined symbol: php_pcre_exec in Unknown on line 0

This isn't my first rodeo. I've setup APC multiple times. This is a MediaTemple Dedicated Virtual 4.0 with Plesk 11. Plesk 11 is the only thing essentially different from the other servers I've set this up on.

I've verified that pcre-devel is installed. I've compiled APC from source as well as used pecl to install it. No difference.

I also tried downgrading to APC 3.0.19, with no love.

Best Answer

First install the pecl package from yum repo and then use the below command to install the apc.

pecl install apc

that's it.