• You are here:
  • Home »
  • No category »

PHP Warning: PHP Startup: apc: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20090626

Did you see that?

PHP Warning:  PHP Startup: apc: Unable to initialize module
Module compiled with module API=20060613
PHP    compiled with module API=20090626
These options need to match
in Unknown on line 0

It may happen with other pecl modules because those mostly was compiled for php 5.2.

My configuration DirectAdmin, Debian 5

Solution?Go to http://pecl.php.net/package/APC, copy link to interesting module, i.e.: http://pecl.php.net/get/APC-3.1.9.tgz
and

wget http://pecl.php.net/get/APC-3.1.9.tgz
tar -zxf APC-3.1.9.tgz
cd APC-3.1.9
/usr/local/php5/bin/phpize
./configure --with-php-config=/usr/local/php5/bin/php-config
make
make install

Leave a Comment: